Merge pull request #168262 from erikarvstedt/systemd-duplicate-def

nixos/systemd: remove duplicate definition of `systemd.user.timers`
This commit is contained in:
Florian Klink 2022-04-11 14:04:50 +02:00 committed by GitHub
commit 3d469dcb68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -573,14 +573,6 @@ in
})
(filterAttrs (name: service: service.enable && service.startAt != []) cfg.services);
# Generate timer units for all services that have a startAt value.
systemd.user.timers =
mapAttrs (name: service:
{ wantedBy = [ "timers.target" ];
timerConfig.OnCalendar = service.startAt;
})
(filterAttrs (name: service: service.startAt != []) cfg.user.services);
# Some overrides to upstream units.
systemd.services."systemd-backlight@".restartIfChanged = false;
systemd.services."systemd-fsck@".restartIfChanged = false;