Auto-commit: 2026-01-07 13:33:14
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
crowdsecservice = "crowdsec-prefix";
|
||||
tailscale-cloudflare-dns-sync-service = "tailscale-cloudflare-dns-sync";
|
||||
in
|
||||
{
|
||||
systemd.services = {
|
||||
crowdsec-prefix = {
|
||||
${crowdsecservice} = {
|
||||
enable = true;
|
||||
description = "Get IPv6 Prefix to add to Crowdsec Whitelist";
|
||||
serviceConfig = {
|
||||
@@ -9,9 +14,17 @@
|
||||
WorkingDirectory = "/mnt/lilly-ssd/appdata/crowdsec/crowdsec-prefix-change-script";
|
||||
};
|
||||
};
|
||||
${tailscale-cloudflare-dns-sync-service} = {
|
||||
enable = true;
|
||||
description = "Start the tailscale-cloudflare-dns-sync Docker container";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.docker}/bin/docker start tailscale-cloudflare-dns-sync";
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.timers = {
|
||||
crowdsec-prefix = {
|
||||
${crowdsecservice} = {
|
||||
enable = true;
|
||||
description = "Run Crowdsec-Prefix check regularly.";
|
||||
timerConfig = {
|
||||
|
||||
Reference in New Issue
Block a user