46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ stable, ... }:
|
|
{
|
|
programs.ssh = {
|
|
enable = true;
|
|
enableDefaultConfig = false;
|
|
"${if stable then "matchBlocks" else "settings"}" = {
|
|
"*" = {
|
|
AddKeysToAgent = "yes";
|
|
ForwardAgent = false;
|
|
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" = {
|
|
IdentityFile = "~/.ssh/pvv_nixos_id_ed25519";
|
|
User = "vegardbm";
|
|
};
|
|
"pvv-git git.pvv.ntnu.no" = {
|
|
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";
|
|
IdentityFile = "~/.ssh/pvv_gitea_id_ed25519";
|
|
User = "vegardbm";
|
|
};
|
|
"pvv-login login.pvv.ntnu.no" = {
|
|
Hostname = "login.pvv.ntnu.no";
|
|
User = "vegardbm";
|
|
};
|
|
};
|
|
};
|
|
}
|