Skip to content

Commit

Permalink
Merge branch 'LnL7:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
b1nhack authored Dec 28, 2024
2 parents a787d6d + bc03f78 commit 3e3c5a6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/programs/ssh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@ in
type = with types; attrsOf (submodule userOptions);
};

programs.ssh.extraConfig = lib.mkOption {
type = lib.types.lines;
default = "";
description = ''
Extra configuration text loaded in {file}`ssh_config`.
See {manpage}`ssh_config(5)` for help.
'';
};

programs.ssh.knownHosts = mkOption {
default = {};
type = types.attrsOf (types.submodule host);
Expand Down Expand Up @@ -151,6 +160,7 @@ in
+ (if h.publicKey != null then h.publicKey else readFile h.publicKeyFile)
)) + "\n";
};
"ssh/ssh_config.d/100-nix-darwin.conf".text = config.programs.ssh.extraConfig;
"ssh/sshd_config.d/101-authorized-keys.conf" = {
text = ''
# sshd doesn't like reading from symbolic links, so we cat
Expand Down

0 comments on commit 3e3c5a6

Please sign in to comment.