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"; site = "unknown";
adminGroups = [ "fai" ]; adminGroups = [ "fai" ];
hashedPassword = "$y$j9T$DMOQEWOYFHjNS0myrXp4x/$MG33VSdXGvib.99eN.AbvyVdNNJw4ERjAwK4.ULJe/A";
stateVersion = null;
nixpkgs = { nixpkgs = {
system = "zyxel-nwa50ax"; system = "zyxel-nwa50ax";
version = "unstable"; version = "unstable";

View file

@ -6,6 +6,7 @@ let
mkDefault mkDefault
mkIf mkIf
mkOption mkOption
optional
; ;
inherit (lib.types) inherit (lib.types)
@ -133,7 +134,7 @@ in
}; };
stateVersion = mkOption { stateVersion = mkOption {
type = str; type = nullOr str;
description = '' description = ''
State version of the node. State version of the node.
''; '';
@ -205,7 +206,7 @@ in
config = { config = {
deployment = { deployment = {
tags = [ "infra-${config.site}" ]; tags = [ "infra-${config.site}" ];
targetHost = mkIf (builtins.hasAttr name args.config.network) ( targetHost = optional (builtins.hasAttr name args.config.network) (
let let
ip = with args.config.network.${name}.addresses; ipv4 ++ ipv6; ip = with args.config.network.${name}.addresses; ipv4 ++ ipv6;
in in