ssh: refactor 2: electric boogaloo
parent
d5f96ae6e5
commit
602ef03b1b
|
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue