diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-01-03 17:53:46 -0600 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-01-03 17:53:46 -0600 |
| commit | 6168406629257f364d8402e21808cf9cd224dc95 (patch) | |
| tree | 9a11c3aeae0dcd535e50f0371b98d18c344a127c | |
| parent | 77d3722c1580dc25219f590754e2e6bf34441e99 (diff) | |
| download | nixos-6168406629257f364d8402e21808cf9cd224dc95.tar.xz nixos-6168406629257f364d8402e21808cf9cd224dc95.zip | |
fix routing options
| -rw-r--r-- | nixos/services/router/dns-dhcp.nix | 4 | ||||
| -rw-r--r-- | nixos/services/router/routing.nix | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/nixos/services/router/dns-dhcp.nix b/nixos/services/router/dns-dhcp.nix index 5dd1612..ea8f32e 100644 --- a/nixos/services/router/dns-dhcp.nix +++ b/nixos/services/router/dns-dhcp.nix @@ -20,8 +20,8 @@ }; }; - config.enable = mkDefault true; - }; + config.enable = lib.mkDefault true; + } ); in { options.services._router.dnsDhcpConfig = { diff --git a/nixos/services/router/routing.nix b/nixos/services/router/routing.nix index 8b09d95..c0c49e6 100644 --- a/nixos/services/router/routing.nix +++ b/nixos/services/router/routing.nix @@ -4,12 +4,12 @@ in { options.services._router.routing = { enable = lib.mkEnableOption "enable nftables routing"; interfaces = { - wan = lib.mkOption = { + wan = lib.mkOption { type = lib.types.str; default = ""; description = "wan interface"; }; - lan = lib.mkOption = { + lan = lib.mkOption { type = lib.types.str; default = ""; description = "lan interface"; @@ -20,7 +20,7 @@ in { config = lib.mkIf cfg.enable { networking.nftables = { enable = true; - table.filter = { + tables.filter = { family = "ip"; # https://hackers-arise.com/linux-basics-for-hackers-building-a-router-with-nftables/ content = '' |
