also generate startAt timers for systemd user units

This commit is contained in:
Anders Papitto 2015-08-20 23:45:13 -07:00
parent a2b718fc80
commit 57f7798b51

View file

@ -713,6 +713,14 @@ in
})
(filterAttrs (name: service: 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);
systemd.sockets.systemd-journal-gatewayd.wantedBy =
optional config.services.journald.enableHttpGateway "sockets.target";