From 6168406629257f364d8402e21808cf9cd224dc95 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sat, 3 Jan 2026 17:53:46 -0600 Subject: fix routing options --- nixos/services/router/dns-dhcp.nix | 4 ++-- 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 = '' -- cgit v1.2.3