C'mon now
This commit is contained in:
parent
a0493a2eef
commit
2ff1389b1c
6
lib.nix
6
lib.nix
|
@ -71,8 +71,8 @@ in {
|
||||||
getSiteGatewayV4 getHostGatewayV4 getSiteGatewayV6 getHostGatewayV6
|
getSiteGatewayV4 getHostGatewayV4 getSiteGatewayV6 getHostGatewayV6
|
||||||
getSiteV4PrefixLength getSiteV6PrefixLength;
|
getSiteV4PrefixLength getSiteV6PrefixLength;
|
||||||
|
|
||||||
fudo-types = with lib.types; rec {
|
fudo-types = with lib.types; {
|
||||||
networkHost = {
|
networkHost.options = {
|
||||||
hostname = mkOption {
|
hostname = mkOption {
|
||||||
type = str;
|
type = str;
|
||||||
description = "Hostname";
|
description = "Hostname";
|
||||||
|
@ -114,6 +114,7 @@ in {
|
||||||
networkHosts = let
|
networkHosts = let
|
||||||
# This is necessary because of the default 'name'...sigh.
|
# This is necessary because of the default 'name'...sigh.
|
||||||
networkHostOpt = { name, ... }: {
|
networkHostOpt = { name, ... }: {
|
||||||
|
options = {
|
||||||
hostname = mkOption {
|
hostname = mkOption {
|
||||||
type = str;
|
type = str;
|
||||||
description = "Hostname";
|
description = "Hostname";
|
||||||
|
@ -151,6 +152,7 @@ in {
|
||||||
default = [ ];
|
default = [ ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
in attrsOf (submodule networkHostOpt);
|
in attrsOf (submodule networkHostOpt);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue