From 03378dc7746c804c930bd124718a814a4a69869f Mon Sep 17 00:00:00 2001 From: alexion Date: Wed, 7 Oct 2026 19:15:18 -0400 Subject: [PATCH] refactor(nixos): inline SSH host name --- configs/nixos/modules/network/ssh.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/configs/nixos/modules/network/ssh.nix b/configs/nixos/modules/network/ssh.nix index e21c0b6..4fb25d5 100644 --- a/configs/nixos/modules/network/ssh.nix +++ b/configs/nixos/modules/network/ssh.nix @@ -65,8 +65,7 @@ let "neogaia" "zeus" ]; - isServer = lib.elem currentHost serverNames; - currentHost = config.networking.hostName; + isServer = lib.elem config.networking.hostName serverNames; serverNames = [ "pikachu" ]; knownHosts = lib.listToAttrs ( @@ -115,8 +114,8 @@ let else [ "gitea" ]; in - lib.filter (name: name != currentHost) groupTargets; - isWorkstation = lib.elem currentHost workstationNames; + lib.filter (name: name != config.networking.hostName) groupTargets; + isWorkstation = lib.elem config.networking.hostName workstationNames; hostKeySecret = type: "ssh-host-${type}-key"; hostKeyTypes = [