mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: implement cidr coersion to automatically determine wireguard network size from participants
This commit is contained in:
parent
6d8f8ab2e3
commit
4057ee9051
14 changed files with 240 additions and 29 deletions
|
@ -93,6 +93,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
# TODO mkForce nftables
|
||||
networking.nftables.firewall = {
|
||||
zones = lib.mkForce {
|
||||
lan.interfaces = ["lan-self"];
|
||||
|
@ -188,5 +189,6 @@ in {
|
|||
baseCidrv4 = lanCidrv4;
|
||||
baseCidrv6 = lanCidrv6;
|
||||
};
|
||||
wireguard.openFirewallRules = ["lan-to-local"];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue