fix(meta): Add required stuff for ap01

This commit is contained in:
Tom Hubrecht 2024-12-08 15:51:31 +01:00
parent 303f53af0f
commit a2295953da
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc
2 changed files with 7 additions and 2 deletions

View file

@ -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";

View file

@ -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