mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-12-23 02:36:05 +01:00
fix: netcup-dns timer
This commit is contained in:
parent
b8aef63af0
commit
709faf9f07
@ -53,13 +53,13 @@ in
|
||||
# Create netcup-dns timer.
|
||||
systemd.timers."netcup-dns" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
partOf = [ "netcup-dns.service" ];
|
||||
# https://man.archlinux.org/man/systemd.timer.5
|
||||
#partOf = [ "netcup-dns.service" ]; # TODO rm this?
|
||||
timerConfig = {
|
||||
OnCalendar = "3m";
|
||||
OnBootSec = "0m";
|
||||
OnUnitInactiveSec = "3m";
|
||||
|
||||
AccuracySec = "15s";
|
||||
RandomizedDelaySec = "15s";
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
systemd.services."netcup-dns" = {
|
||||
@ -69,13 +69,8 @@ in
|
||||
User = "netcup-dns";
|
||||
Nice = 19;
|
||||
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";
|
||||
};
|
||||
# path = with pkgs; [
|
||||
# my-python-packages
|
||||
# ];
|
||||
};
|
||||
|
||||
# Start Jinja-Compose project during boot.
|
||||
|
Loading…
Reference in New Issue
Block a user