🥺
This commit is contained in:
parent
9710ec7174
commit
f29847b7dc
1 changed files with 6 additions and 6 deletions
|
@ -64,27 +64,27 @@
|
||||||
filteredHosts;
|
filteredHosts;
|
||||||
in {
|
in {
|
||||||
#create first options because apparently you have to do that in Nix
|
#create first options because apparently you have to do that in Nix
|
||||||
lyn.network.IPv6.peerlist = lib.mkOption {
|
config.lyn.network.IPv6.peerlist = lib.mkOption {
|
||||||
type = lib.types.list;
|
type = lib.types.list;
|
||||||
description = "List of all IPv6 Wireguard peers";
|
description = "List of all IPv6 Wireguard peers";
|
||||||
};
|
};
|
||||||
lyn.network.IPv4.peerlist = lib.mkOption {
|
config.lyn.network.IPv4.peerlist = lib.mkOption {
|
||||||
type = lib.types.list;
|
type = lib.types.list;
|
||||||
description = "List of all IPv4 Wireguard peers";
|
description = "List of all IPv4 Wireguard peers";
|
||||||
};
|
};
|
||||||
lyn.network.IPv6.wg_subnet = lib.mkOption {
|
config.lyn.network.IPv6.wg_subnet = lib.mkOption {
|
||||||
type = string;
|
type = string;
|
||||||
description = "The IPv6 range that the peers will use";
|
description = "The IPv6 range that the peers will use";
|
||||||
};
|
};
|
||||||
lyn.network.IPv4.wg_subnet = lib.mkOption {
|
config.lyn.network.IPv4.wg_subnet = lib.mkOption {
|
||||||
type = string;
|
type = string;
|
||||||
description = "The IPv4 range that the peers will use";
|
description = "The IPv4 range that the peers will use";
|
||||||
};
|
};
|
||||||
lyn.network.IPv6.hosts = lib.mkOption {
|
config.lyn.network.IPv6.hosts = lib.mkOption {
|
||||||
type = lib.types.set;
|
type = lib.types.set;
|
||||||
description = "All hosts in this network that this config should be aware of";
|
description = "All hosts in this network that this config should be aware of";
|
||||||
};
|
};
|
||||||
${prefix}.network = {
|
config.${prefix}.network = {
|
||||||
IPv4 = {
|
IPv4 = {
|
||||||
wg_subnet = wg_subnets.v4;
|
wg_subnet = wg_subnets.v4;
|
||||||
peerlist = buildPeerlist "v4" hosts;
|
peerlist = buildPeerlist "v4" hosts;
|
||||||
|
|
Loading…
Reference in a new issue