summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixos/services/router/dns-dhcp.nix4
-rw-r--r--nixos/services/router/routing.nix6
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 = ''