mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
fix: netcup-dns timer
This commit is contained in:
parent
b8aef63af0
commit
709faf9f07
@ -53,13 +53,13 @@ in
|
|||||||
# Create netcup-dns timer.
|
# Create netcup-dns timer.
|
||||||
systemd.timers."netcup-dns" = {
|
systemd.timers."netcup-dns" = {
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
partOf = [ "netcup-dns.service" ];
|
#partOf = [ "netcup-dns.service" ]; # TODO rm this?
|
||||||
# https://man.archlinux.org/man/systemd.timer.5
|
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "3m";
|
OnBootSec = "0m";
|
||||||
|
OnUnitInactiveSec = "3m";
|
||||||
|
|
||||||
AccuracySec = "15s";
|
AccuracySec = "15s";
|
||||||
RandomizedDelaySec = "15s";
|
RandomizedDelaySec = "15s";
|
||||||
Persistent = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.services."netcup-dns" = {
|
systemd.services."netcup-dns" = {
|
||||||
@ -69,13 +69,8 @@ in
|
|||||||
User = "netcup-dns";
|
User = "netcup-dns";
|
||||||
Nice = 19;
|
Nice = 19;
|
||||||
IOSchedulingClass = "idle";
|
IOSchedulingClass = "idle";
|
||||||
#ExecStart = "/run/current-system/sw/bin/netcup-dns";
|
|
||||||
#ExecStart = "${my-python-packages}/bin/netcup-dns";
|
|
||||||
ExecStart = "${pkgs.python3.withPackages my-python-packages}/bin/netcup-dns";
|
ExecStart = "${pkgs.python3.withPackages my-python-packages}/bin/netcup-dns";
|
||||||
};
|
};
|
||||||
# path = with pkgs; [
|
|
||||||
# my-python-packages
|
|
||||||
# ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Start Jinja-Compose project during boot.
|
# Start Jinja-Compose project during boot.
|
||||||
|
Loading…
Reference in New Issue
Block a user