{ stable, ... }: { programs.ssh = { enable = true; enableDefaultConfig = false; "${if stable then "matchBlocks" else "settings"}" = { "*" = { forwardAgent = false; addKeysToAgent = "yes"; compression = false; serverAliveInterval = 0; serverAliveCountMax = 3; hashKnownHosts = false; userKnownHostsFile = "~/.ssh/known_hosts"; controlMaster = "no"; controlPath = "~/.ssh/master-%r@%n:%p"; controlPersist = "no"; }; "*.pvv.ntnu.no microbel pvv-login" = { identityFile = "~/.ssh/pvv_nixos_id_ed25519"; user = "vegardbm"; }; "git.pvv.ntnu.no pvv-git" = { port = 2222; user = "Gitea"; hostname = "git.pvv.ntnu.no"; proxyJump = "microbel"; identityFile = "~/.ssh/pvv_gitea_id_ed25519"; }; "github.com" = { hostname = "github.com"; identityFile = "~/.ssh/nixos_xeon_github_id_ed25519"; }; "microbel" = { hostname = "microbel.pvv.ntnu.no"; }; "pvv-login" = { hostname = "login.pvv.ntnu.no"; }; }; }; }