diff --git a/modules/base/sshguard/default.nix b/modules/base/sshguard/default.nix index 6b5df28..19d7cd6 100644 --- a/modules/base/sshguard/default.nix +++ b/modules/base/sshguard/default.nix @@ -18,8 +18,7 @@ whitelist = [ "192.168.0.0/16" myData.tailscale_subnet.cidr - myData.hosts."vno1-oh2.servers.jakst".publicIP - ]; + ] ++ (lib.catAttrs "publicIP" (lib.attrValues myData.hosts)); }; }; }