systemd: add support for creating target files
This commit is contained in:
parent
e4723b51cd
commit
06a24c37e5
|
@ -45,6 +45,12 @@ in
|
||||||
description = "Definition of systemd per-user service units.";
|
description = "Definition of systemd per-user service units.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
targets = mkOption {
|
||||||
|
default = {};
|
||||||
|
type = types.attrs;
|
||||||
|
description = "Definition of systemd per-user targets";
|
||||||
|
};
|
||||||
|
|
||||||
timers = mkOption {
|
timers = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
|
@ -58,6 +64,8 @@ in
|
||||||
listToAttrs (
|
listToAttrs (
|
||||||
(buildServices "service" config.systemd.user.services)
|
(buildServices "service" config.systemd.user.services)
|
||||||
++
|
++
|
||||||
|
(buildServices "target" config.systemd.user.targets)
|
||||||
|
++
|
||||||
(buildServices "timer" config.systemd.user.timers)
|
(buildServices "timer" config.systemd.user.timers)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue