about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-12-30 15:40:43 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-12-30 15:40:43 +0100
commite62cb5585dbf67caa1fac0532b3777bdfc4a3980 (patch)
tree953fc38530dd875722091fd3efa2cf3b1bbba32d /nixos
parent7f06428544897f9064db5520433393a8cb16a72f (diff)
parentdcc93abe74d95b41c2fcfe74523da15efb7319a8 (diff)
downloadnixlib-e62cb5585dbf67caa1fac0532b3777bdfc4a3980.tar
nixlib-e62cb5585dbf67caa1fac0532b3777bdfc4a3980.tar.gz
nixlib-e62cb5585dbf67caa1fac0532b3777bdfc4a3980.tar.bz2
nixlib-e62cb5585dbf67caa1fac0532b3777bdfc4a3980.tar.lz
nixlib-e62cb5585dbf67caa1fac0532b3777bdfc4a3980.tar.xz
nixlib-e62cb5585dbf67caa1fac0532b3777bdfc4a3980.tar.zst
nixlib-e62cb5585dbf67caa1fac0532b3777bdfc4a3980.zip
Merge pull request #5507 from DamienCassou/systemd-user-timers
Add systemd.user.timers
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/systemd.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix
index cd7f2ed7b934..053a85c4c5b9 100644
--- a/nixos/modules/system/boot/systemd.nix
+++ b/nixos/modules/system/boot/systemd.nix
@@ -858,6 +858,13 @@ in
       description = "Definition of systemd per-user service units.";
     };
 
+    systemd.user.timers = mkOption {
+      default = {};
+      type = types.attrsOf types.optionSet;
+      options = [ timerOptions unitConfig ];
+      description = "Definition of systemd per-user timer units.";
+    };
+
     systemd.user.sockets = mkOption {
       default = {};
       type = types.attrsOf types.optionSet;
@@ -978,8 +985,9 @@ in
       // mapAttrs' (n: v: nameValuePair "${n}.network" (networkToUnit n v)) cfg.network.networks;
 
     systemd.user.units =
-      mapAttrs' (n: v: nameValuePair "${n}.service" (serviceToUnit n v)) cfg.user.services
-      // mapAttrs' (n: v: nameValuePair "${n}.socket" (socketToUnit n v)) cfg.user.sockets;
+         mapAttrs' (n: v: nameValuePair "${n}.service" (serviceToUnit n v)) cfg.user.services
+      // mapAttrs' (n: v: nameValuePair "${n}.socket"  (socketToUnit  n v)) cfg.user.sockets
+      // mapAttrs' (n: v: nameValuePair "${n}.timer"   (timerToUnit   n v)) cfg.user.timers;
 
     system.requiredKernelConfig = map config.lib.kernelConfig.isEnabled
       [ "DEVTMPFS" "CGROUPS" "INOTIFY_USER" "SIGNALFD" "TIMERFD" "EPOLL" "NET"