diff --git a/default.nix b/default.nix index 22d8b7b..eacd9a9 100644 --- a/default.nix +++ b/default.nix @@ -195,7 +195,16 @@ in { "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOkbSJWeWJyJjak/boaMTqzPVq91wfJz1P+I4rnBUsPW"; }; startAgent = true; - extraConfig = ""; + extraConfig = '' + agentTimeout = "100m"; + VerifyHostKeyDNS yes + AddKeysToAgent confirm 90m + CanonicalizeHostname always + + Host * + controlmaster auto + controlpath /tmp/ssh-%r@%h:%p + ''; }; }; diff --git a/users/default.nix b/users/default.nix index 9ff38c2..3c0fe0d 100644 --- a/users/default.nix +++ b/users/default.nix @@ -29,20 +29,6 @@ in { extraGroups = [ "wheel" ]; }; - programs.ssh = { - startAgent = true; - agentTimeout = "100m"; - extraConfig = '' - VerifyHostKeyDNS yes - AddKeysToAgent confirm 90m - CanonicalizeHostname always - - Host * - controlmaster auto - controlpath /tmp/ssh-%r@%h:%p - ''; - }; - environment.systemPackages = if isUnstable then [ pkgs.yash pkgs.go ] else [ pkgs.go ]; };