aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2026-01-27 13:48:35 -0800
committerCaroline Larimore <caroline@larimo.re>2026-01-27 13:48:35 -0800
commit5d1f2f412eba3bc6c16ac2c32d1fe57ccf7c53f9 (patch)
treee99c2d7a3defc13f9d56728463db56c34a1b91d2 /modules
parentb62ca134e19daadbff77e4440951be54ead1c401 (diff)
ssh: future-proof config
Diffstat (limited to 'modules')
-rw-r--r--modules/home/tools/ssh/default.nix23
1 files changed, 22 insertions, 1 deletions
diff --git a/modules/home/tools/ssh/default.nix b/modules/home/tools/ssh/default.nix
index fb5830c..e34428e 100644
--- a/modules/home/tools/ssh/default.nix
+++ b/modules/home/tools/ssh/default.nix
@@ -15,7 +15,28 @@ in {
];
};
- programs.ssh.enable = true;
+ programs.ssh = {
+ enable = true;
+
+ #TODO: set up match block for copenhagen to enable forwarding
+ enableDefaultConfig = false;
+ matchBlocks."*" = { # old default config
+ forwardAgent = false;
+ addKeysToAgent = "no";
+
+ compression = false;
+
+ serverAliveInterval = 0;
+ serverAliveCountMax = 3;
+
+ hashKnownHosts = false;
+ userKnownHostsFile = "~/.ssh/known_hosts";
+
+ controlMaster = "no";
+ controlPath = "~/.ssh/master-%r@%n:%p";
+ controlPersist = "no";
+ };
+ };
services.gpg-agent = {
enableSshSupport = true;