nix: get nftables from correct parent attr
This commit is contained in:
parent
8009b35589
commit
b53d7a1401
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue