diff options
| author | Fuwn <[email protected]> | 2024-09-20 17:49:52 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-20 17:49:52 -0700 |
| commit | ca63f12fc6ba869fca4891f5ac350d8c7e2af6e6 (patch) | |
| tree | 6ea2f1d6d7db4a3cdfaa4f1eaf36ad4f25c597af /home | |
| parent | fish: escalate find (diff) | |
| download | nixos-config-ca63f12fc6ba869fca4891f5ac350d8c7e2af6e6.tar.xz nixos-config-ca63f12fc6ba869fca4891f5ac350d8c7e2af6e6.zip | |
system: ssh managed by home manager
Diffstat (limited to 'home')
| -rw-r--r-- | home/ebisu/fortune/system/default.nix | 1 | ||||
| -rw-r--r-- | home/ebisu/fortune/system/ssh.nix | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/home/ebisu/fortune/system/default.nix b/home/ebisu/fortune/system/default.nix index 5657679..cf8279a 100644 --- a/home/ebisu/fortune/system/default.nix +++ b/home/ebisu/fortune/system/default.nix @@ -7,6 +7,7 @@ ./terminal ./virtualisation ./peripheral.nix + ./ssh.nix ./tracing.nix ./variables.nix ./xdg.nix diff --git a/home/ebisu/fortune/system/ssh.nix b/home/ebisu/fortune/system/ssh.nix new file mode 100644 index 0000000..fec6891 --- /dev/null +++ b/home/ebisu/fortune/system/ssh.nix @@ -0,0 +1,46 @@ +{ config, secrets, ... }: +{ + programs.ssh = { + enable = true; + addKeysToAgent = "yes"; + serverAliveInterval = 60; + serverAliveCountMax = 10; + + extraConfig = '' + IgnoreUnknown UseKeychain + UseKeychain yes + IPQoS lowdelay throughput + ''; + + matchBlocks = { + "watson".user = "root"; + "fina".hostname = "192.168.1.215"; + "himeji".user = "root"; + + "github.com" = { + user = "git"; + identityFile = "${config.home.homeDirectory}/.ssh/id_rsa"; + }; + + "aur.archlinux.org" = { + user = "aur"; + identityFile = "${config.home.homeDirectory}/.ssh/aur"; + }; + + "seti" = { + user = "root"; + port = 2222; + identityFile = "${config.home.homeDirectory}/.ssh/seti"; + }; + + "oit" = { + inherit (secrets.ssh.oit) hostname user; + }; + + "eu.nixbuild.net" = { + port = 2222; + identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519.1"; + }; + }; + }; +} |