Auto-commit: 2026-01-07 13:28:49
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
systemd.services.crowdsec-prefix = {
|
||||
systemd.services = {
|
||||
crowdsec-prefix = {
|
||||
enable = true;
|
||||
description = "Get IPv6 Prefix to add to Crowdsec Whitelist";
|
||||
serviceConfig = {
|
||||
@@ -9,4 +10,16 @@
|
||||
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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user