refactor(nixos): inline managed SSH host names

This commit is contained in:
2026-10-07 20:13:00 -04:00
parent 1b682b430f
commit fa80dc4e3e

View File

@@ -15,7 +15,6 @@ let
"zeus"
];
serverNames = [ "pikachu" ];
managedHostNames = workstationNames ++ serverNames; # NOLINT(let_order)
isWorkstation = lib.elem config.networking.hostName workstationNames; # NOLINT(let_order)
isServer = lib.elem config.networking.hostName serverNames; # NOLINT(let_order)
@@ -28,7 +27,7 @@ let
(../../hosts + "/${host}/ssh_host_rsa_key.pub")
];
# NOLINT(let_order)
managedTargets = lib.genAttrs managedHostNames (name: {
managedTargets = lib.genAttrs (workstationNames ++ serverNames) (name: {
hostName = registry.address.${name}.self;
clientKey = clientKeyFor name;
hostKeys = hostKeysFor name;