Auto-commit: 2026-01-07 14:04:06
This commit is contained in:
@@ -5,6 +5,7 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
|
|
||||||
${crowdsecservice} = {
|
${crowdsecservice} = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "Get IPv6 Prefix to add to Crowdsec Whitelist";
|
description = "Get IPv6 Prefix to add to Crowdsec Whitelist";
|
||||||
@@ -14,6 +15,7 @@ in
|
|||||||
WorkingDirectory = "/mnt/lilly-ssd/appdata/crowdsec/crowdsec-prefix-change-script";
|
WorkingDirectory = "/mnt/lilly-ssd/appdata/crowdsec/crowdsec-prefix-change-script";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
${tailscale-cloudflare-dns-sync-service} = {
|
${tailscale-cloudflare-dns-sync-service} = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "Start the tailscale-cloudflare-dns-sync Docker container";
|
description = "Start the tailscale-cloudflare-dns-sync Docker container";
|
||||||
@@ -23,7 +25,9 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.timers = {
|
systemd.timers = {
|
||||||
|
|
||||||
${crowdsecservice} = {
|
${crowdsecservice} = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "Run Crowdsec-Prefix check regularly.";
|
description = "Run Crowdsec-Prefix check regularly.";
|
||||||
@@ -33,5 +37,16 @@ in
|
|||||||
};
|
};
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
${tailscale-cloudflare-dns-sync-service} = {
|
||||||
|
enable = true;
|
||||||
|
description = "Run tailscale-cloudflare-dns-sync every 10 minutes";
|
||||||
|
timerConfig = {
|
||||||
|
OnBootSec = "10min";
|
||||||
|
OnUnitActiveSec = "10min";
|
||||||
|
Persistent = true;
|
||||||
|
};
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user