From fa80dc4e3e2c48a7559dd9e77f352b5be821f335 Mon Sep 17 00:00:00 2001 From: alexion Date: Wed, 7 Oct 2026 20:13:00 -0400 Subject: [PATCH] refactor(nixos): inline managed SSH host names --- configs/nixos/modules/network/ssh.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configs/nixos/modules/network/ssh.nix b/configs/nixos/modules/network/ssh.nix index 3718011..b33dafc 100644 --- a/configs/nixos/modules/network/ssh.nix +++ b/configs/nixos/modules/network/ssh.nix @@ -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;