lib/autoupdate: let service generate the timer

This commit is contained in:
Astro 2022-01-12 23:09:54 +01:00
parent ac7b628e8c
commit 80aa41c12e
1 changed files with 2 additions and 6 deletions

View File

@ -51,12 +51,8 @@
# don't let the switch kill this service, aborting the switch
restartIfChanged = false;
unitConfig.X-StopOnRemoval = false;
};
systemd.timers.autoupdate = {
partOf = [ "autoupdate.service" ];
wantedBy = [ "timers.target" ];
timerConfig.OnCalendar = "hourly";
# create timer
startAt = "hourly";
};
nix.gc = {