From 06a24c37e5df86e802fcfadd7c5f7fe1fab82ec5 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Mon, 9 Jan 2017 22:48:53 +0100 Subject: [PATCH] systemd: add support for creating target files --- modules/systemd.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/systemd.nix b/modules/systemd.nix index 5e7cc6b4..6ea8b21c 100644 --- a/modules/systemd.nix +++ b/modules/systemd.nix @@ -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) );