C'mon now

This commit is contained in:
niten 2023-11-17 11:05:58 -08:00
parent a0493a2eef
commit 2ff1389b1c
1 changed files with 34 additions and 32 deletions

View File

@ -71,8 +71,8 @@ in {
getSiteGatewayV4 getHostGatewayV4 getSiteGatewayV6 getHostGatewayV6
getSiteV4PrefixLength getSiteV6PrefixLength;
fudo-types = with lib.types; rec {
networkHost = {
fudo-types = with lib.types; {
networkHost.options = {
hostname = mkOption {
type = str;
description = "Hostname";
@ -114,6 +114,7 @@ in {
networkHosts = let
# This is necessary because of the default 'name'...sigh.
networkHostOpt = { name, ... }: {
options = {
hostname = mkOption {
type = str;
description = "Hostname";
@ -151,6 +152,7 @@ in {
default = [ ];
};
};
};
in attrsOf (submodule networkHostOpt);
};
}