ssh: refactor 2: electric boogaloo

sh-initrd-on-root
Zynh Ludwig 2024-07-28 15:05:27 -07:00
parent d5f96ae6e5
commit 602ef03b1b
1 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@ let
ifSops = lib.mkIf sops; ifSops = lib.mkIf sops;
keyPathIfSops = key: ifSops secrets.${key}.path; keyPathIfSops = key: ifSops secrets.${"private_keys/" + key}.path;
in in
{ {
options.snowhawk.ssh = { options.snowhawk.ssh = {
@ -27,23 +27,23 @@ in
hostname = "git.zynh.me"; hostname = "git.zynh.me";
user = "git"; user = "git";
port = 2221; port = 2221;
identityFile = keyPathIfSops "private_keys/personal_git"; identityFile = keyPathIfSops "personal_git";
}; };
snowhawk = { snowhawk = {
identityFile = keyPathIfSops "private_keys/snowhawk"; identityFile = keyPathIfSops "snowhawk";
}; };
msiserver = { msiserver = {
hostname = "scarlet.zynh.me"; hostname = "scarlet.zynh.me";
user = "zynh"; user = "zynh";
identityFile = keyPathIfSops "private_keys/msiserver"; identityFile = keyPathIfSops "msiserver";
}; };
"msiserver.local" = lib.mkIf cfg.homeNetwork { "msiserver.local" = lib.mkIf cfg.homeNetwork {
hostname = "msiserver"; hostname = "msiserver";
user = "zynh"; user = "zynh";
identityFile = keyPathIfSops "private_keys/msiserver"; identityFile = keyPathIfSops "msiserver";
}; };
caveserver = { caveserver = {
identityFile = keyPathIfSops "private_keys/caveserver"; identityFile = keyPathIfSops "caveserver";
}; };
}; };
}; };