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