systemd: add support for creating target files

This commit is contained in:
Robert Helgesson 2017-01-09 22:48:53 +01:00
parent e4723b51cd
commit 06a24c37e5
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -45,6 +45,12 @@ in
description = "Definition of systemd per-user service units.";
};
targets = mkOption {
default = {};
type = types.attrs;
description = "Definition of systemd per-user targets";
};
timers = mkOption {
default = {};
type = types.attrs;
@ -58,6 +64,8 @@ in
listToAttrs (
(buildServices "service" config.systemd.user.services)
++
(buildServices "target" config.systemd.user.targets)
++
(buildServices "timer" config.systemd.user.timers)
);