nix: get nftables from correct parent attr

This commit is contained in:
raf 2025-05-01 06:07:09 +03:00
commit b53d7a1401
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -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