diff options
Diffstat (limited to '')
-rw-r--r-- | hosts/darkstar/default.nix | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hosts/darkstar/default.nix b/hosts/darkstar/default.nix index 6bfc153..5208bfd 100644 --- a/hosts/darkstar/default.nix +++ b/hosts/darkstar/default.nix @@ -91,7 +91,6 @@ systemd.services."nftables-extra" = { description = "nftables extra firewall rules"; - enable = true; script = '' ${pkgs.nftables}/bin/nft -f ${config.sops.secrets."nftables/ssh".path} ''; @@ -102,12 +101,12 @@ unitConfig = { ConditionPathExists = config.sops.secrets."nftables/ssh".path; }; + wantedBy = [ "multi-user.target" ]; }; - systemd.paths."nftables-ssh" = { - enable = true; + systemd.paths."nftables-extra" = { pathConfig = { PathExists = config.sops.secrets."nftables/ssh".path; - Unit = "nftables-extra.service"; }; + wantedBy = [ "multi-user.target" ]; }; } |