lib/autoupdate: let service generate the timer
This commit is contained in:
parent
ac7b628e8c
commit
80aa41c12e
|
@ -51,12 +51,8 @@
|
||||||
# don't let the switch kill this service, aborting the switch
|
# don't let the switch kill this service, aborting the switch
|
||||||
restartIfChanged = false;
|
restartIfChanged = false;
|
||||||
unitConfig.X-StopOnRemoval = false;
|
unitConfig.X-StopOnRemoval = false;
|
||||||
};
|
# create timer
|
||||||
|
startAt = "hourly";
|
||||||
systemd.timers.autoupdate = {
|
|
||||||
partOf = [ "autoupdate.service" ];
|
|
||||||
wantedBy = [ "timers.target" ];
|
|
||||||
timerConfig.OnCalendar = "hourly";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
|
|
Loading…
Reference in New Issue