Skip to content

Commit

Permalink
nix: include some directory for ssh config
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Jan 21, 2024
1 parent c9169f6 commit 45f6894
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nix/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,12 @@ in
enableBrowserSocket = true;
};
sysdig = { enable = prefs.enableSysdig; };
ssh = { startAgent = true; };
ssh = {
startAgent = true;
extraConfig = ''
Include ssh_config.d/*
'';
};
# vim.defaultEditor = true;
adb.enable = prefs.enableADB;
slock.enable = prefs.enableSlock;
Expand Down Expand Up @@ -1397,7 +1402,7 @@ in
};
startWhenNeeded = true;
extraConfig = builtins.concatStringsSep "\n" (
[ "Include /etc/ssh/sshd_config_*" ] ++ (lib.optionals prefs.enableSshPortForwarding [
[ "Include /etc/ssh/sshd_config.d/*" ] ++ (lib.optionals prefs.enableSshPortForwarding [
''
Match User ssh-port-forwarding
# PermitTunnel no
Expand Down

0 comments on commit 45f6894

Please sign in to comment.