mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 14:40:29 +00:00
systemd: add support for creating target files
This commit is contained in:
parent
e4723b51cd
commit
06a24c37e5
1 changed files with 8 additions and 0 deletions
|
@ -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