diff --git a/hosts/lillyserver/systemd.nix b/hosts/lillyserver/systemd.nix index e69de29..bdc05fd 100644 --- a/hosts/lillyserver/systemd.nix +++ b/hosts/lillyserver/systemd.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: +{ + systemd.services.crowdsec-prefix = { + enable = true; + description = "Get IPv6 Prefix to add to Crowdsec Whitelist"; + serviceConfig = { + Type = "oneshot"; + ExecStart = "/mnt/lilly-ssd/appdata/crowdsec/crowdsec-prefix-change-script/checkprefix.sh"; + WorkingDirectory = "/mnt/lilly-ssd/appdata/crowdsec/crowdsec-prefix-change-script"; + }; + }; +}