Auto-commit: 2026-01-07 13:28:49

This commit is contained in:
2026-01-07 13:28:49 +00:00
parent 149519399e
commit 99878eef4e

View File

@@ -1,12 +1,25 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
systemd.services.crowdsec-prefix = { systemd.services = {
enable = true; crowdsec-prefix = {
description = "Get IPv6 Prefix to add to Crowdsec Whitelist"; enable = true;
serviceConfig = { description = "Get IPv6 Prefix to add to Crowdsec Whitelist";
Type = "oneshot"; serviceConfig = {
ExecStart = "/mnt/lilly-ssd/appdata/crowdsec/crowdsec-prefix-change-script/checkprefix.sh"; Type = "oneshot";
WorkingDirectory = "/mnt/lilly-ssd/appdata/crowdsec/crowdsec-prefix-change-script"; ExecStart = "/mnt/lilly-ssd/appdata/crowdsec/crowdsec-prefix-change-script/checkprefix.sh";
WorkingDirectory = "/mnt/lilly-ssd/appdata/crowdsec/crowdsec-prefix-change-script";
};
};
};
systemd.timers = {
crowdsec-prefix = {
enable = true;
description = "Run Crowdsec-Prefix check regularly.";
timerConfig = {
OnCalendar = "*:0/5";
Persistent = true;
};
wantedBy = [ "timers.target" ];
}; };
}; };
} }