summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd.nix
diff options
context:
space:
mode:
authorAlexander Ried <ried@mytum.de>2016-10-19 02:10:46 +0200
committerAlexander Ried <ried@mytum.de>2016-10-19 02:22:12 +0200
commit8bb4fc1039f8f97534bd2ab5cc3f42e7d753a5a0 (patch)
tree506d79f178a1b46aa5345f44175d7798bc12fabc /nixos/modules/system/boot/systemd.nix
parent89ef1a1756098bd9afd857484bf9581e37af6069 (diff)
downloadnixpkgs-8bb4fc1039f8f97534bd2ab5cc3f42e7d753a5a0.tar
nixpkgs-8bb4fc1039f8f97534bd2ab5cc3f42e7d753a5a0.tar.gz
nixpkgs-8bb4fc1039f8f97534bd2ab5cc3f42e7d753a5a0.tar.bz2
nixpkgs-8bb4fc1039f8f97534bd2ab5cc3f42e7d753a5a0.tar.lz
nixpkgs-8bb4fc1039f8f97534bd2ab5cc3f42e7d753a5a0.tar.xz
nixpkgs-8bb4fc1039f8f97534bd2ab5cc3f42e7d753a5a0.tar.zst
nixpkgs-8bb4fc1039f8f97534bd2ab5cc3f42e7d753a5a0.zip
systemd.timers: filter timers with empty startAt
Diffstat (limited to 'nixos/modules/system/boot/systemd.nix')
-rw-r--r--nixos/modules/system/boot/systemd.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix
index d44c2e234b0..d1f3f923e5e 100644
--- a/nixos/modules/system/boot/systemd.nix
+++ b/nixos/modules/system/boot/systemd.nix
@@ -777,7 +777,7 @@ in
         { wantedBy = [ "timers.target" ];
           timerConfig.OnCalendar = service.startAt;
         })
-        (filterAttrs (name: service: service.enable && service.startAt != "") cfg.services);
+        (filterAttrs (name: service: service.enable && service.startAt != []) cfg.services);
 
     # Generate timer units for all services that have a ‘startAt’ value.
     systemd.user.timers =
@@ -785,7 +785,7 @@ in
         { wantedBy = [ "timers.target" ];
           timerConfig.OnCalendar = service.startAt;
         })
-        (filterAttrs (name: service: service.startAt != "") cfg.user.services);
+        (filterAttrs (name: service: service.startAt != []) cfg.user.services);
 
     systemd.sockets.systemd-journal-gatewayd.wantedBy =
       optional config.services.journald.enableHttpGateway "sockets.target";