mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01: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.";
|
||||
};
|
||||
|
||||
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)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue