refactor(nixos): inline managed SSH host names
This commit is contained in:
@@ -15,7 +15,6 @@ let
|
|||||||
"zeus"
|
"zeus"
|
||||||
];
|
];
|
||||||
serverNames = [ "pikachu" ];
|
serverNames = [ "pikachu" ];
|
||||||
managedHostNames = workstationNames ++ serverNames; # NOLINT(let_order)
|
|
||||||
isWorkstation = lib.elem config.networking.hostName workstationNames; # NOLINT(let_order)
|
isWorkstation = lib.elem config.networking.hostName workstationNames; # NOLINT(let_order)
|
||||||
isServer = lib.elem config.networking.hostName serverNames; # 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")
|
(../../hosts + "/${host}/ssh_host_rsa_key.pub")
|
||||||
];
|
];
|
||||||
# NOLINT(let_order)
|
# NOLINT(let_order)
|
||||||
managedTargets = lib.genAttrs managedHostNames (name: {
|
managedTargets = lib.genAttrs (workstationNames ++ serverNames) (name: {
|
||||||
hostName = registry.address.${name}.self;
|
hostName = registry.address.${name}.self;
|
||||||
clientKey = clientKeyFor name;
|
clientKey = clientKeyFor name;
|
||||||
hostKeys = hostKeysFor name;
|
hostKeys = hostKeysFor name;
|
||||||
|
|||||||
Reference in New Issue
Block a user