From b53d7a1401c0a9fc12b42836eaff7a83884d4c6a Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 1 May 2025 06:07:09 +0300 Subject: [PATCH] nix: get nftables from correct parent attr --- nix/module.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nix/module.nix b/nix/module.nix index 50f6fb0..f8a8984 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -216,7 +216,7 @@ in { }; config = mkIf cfg.enable { - services.nftables = { + networking.nftables = { enable = mkIf cfg.nftablesIntegration cfg.nftablesIntegration; ruleset = mkIf cfg.nftablesIntegration '' table inet filter { @@ -248,8 +248,8 @@ in { systemd.services.eris = { description = "Eris Tarpit Service"; wantedBy = ["multi-user.target"]; - after = ["network.target"] ++ optionals cfg.nftablesIntegration "nftables.service"; - requires = optionals cfg.nftablesIntegration "nftables.service"; + after = ["network.target"] ++ (optionals cfg.nftablesIntegration ["nftables.service"]); + requires = optionals cfg.nftablesIntegration ["nftables.service"]; serviceConfig = { # User and Group configuration