forked from DGNum/infrastructure
fix(meta): Add required stuff for ap01
This commit is contained in:
parent
303f53af0f
commit
a2295953da
2 changed files with 7 additions and 2 deletions
|
@ -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";
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue