ClanModules/zerotier: simplify nix code
This commit is contained in:
committed by
hsjobeki
parent
68fddaec7e
commit
a6b35f70c6
@@ -25,23 +25,27 @@ let
|
|||||||
) [ ] moons;
|
) [ ] moons;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.clan.zerotier = {
|
options.clan.zerotier =
|
||||||
excludeHosts = lib.mkOption {
|
let
|
||||||
type = lib.types.listOf lib.types.str;
|
inherit (lib.types) listOf str;
|
||||||
default = [ config.clan.core.machineName ];
|
in
|
||||||
description = "Hosts that should be excluded";
|
{
|
||||||
|
excludeHosts = lib.mkOption {
|
||||||
|
type = listOf str;
|
||||||
|
default = [ config.clan.core.machineName ];
|
||||||
|
description = "Hosts that should be excluded";
|
||||||
|
};
|
||||||
|
networkIps = lib.mkOption {
|
||||||
|
type = listOf str;
|
||||||
|
default = [ ];
|
||||||
|
description = "Extra zerotier network Ips that should be accepted";
|
||||||
|
};
|
||||||
|
networkIds = lib.mkOption {
|
||||||
|
type = listOf str;
|
||||||
|
default = [ ];
|
||||||
|
description = "Extra zerotier network Ids that should be accepted";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
networkIps = lib.mkOption {
|
|
||||||
type = lib.types.listOf lib.types.str;
|
|
||||||
default = [ ];
|
|
||||||
description = "Extra zerotier network Ips that should be accepted";
|
|
||||||
};
|
|
||||||
networkIds = lib.mkOption {
|
|
||||||
type = lib.types.listOf lib.types.str;
|
|
||||||
default = [ ];
|
|
||||||
description = "Extra zerotier network Ids that should be accepted";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
assertions = [
|
assertions = [
|
||||||
|
|||||||
Reference in New Issue
Block a user