diff --git a/meta/nodes.nix b/meta/nodes.nix index 91dd6c0..2c10097 100644 --- a/meta/nodes.nix +++ b/meta/nodes.nix @@ -182,6 +182,10 @@ site = "unknown"; adminGroups = [ "fai" ]; + hashedPassword = "$y$j9T$DMOQEWOYFHjNS0myrXp4x/$MG33VSdXGvib.99eN.AbvyVdNNJw4ERjAwK4.ULJe/A"; + + stateVersion = null; + nixpkgs = { system = "zyxel-nwa50ax"; version = "unstable"; diff --git a/meta/options.nix b/meta/options.nix index e26e32c..0bbfd8b 100644 --- a/meta/options.nix +++ b/meta/options.nix @@ -6,6 +6,7 @@ let mkDefault mkIf mkOption + optional ; inherit (lib.types) @@ -133,7 +134,7 @@ in }; stateVersion = mkOption { - type = str; + type = nullOr str; description = '' State version of the node. ''; @@ -205,7 +206,7 @@ in config = { deployment = { tags = [ "infra-${config.site}" ]; - targetHost = mkIf (builtins.hasAttr name args.config.network) ( + targetHost = optional (builtins.hasAttr name args.config.network) ( let ip = with args.config.network.${name}.addresses; ipv4 ++ ipv6; in