diff options
author | Alexander Ried <ried@mytum.de> | 2016-10-19 02:10:46 +0200 |
---|---|---|
committer | Alexander Ried <ried@mytum.de> | 2016-10-19 02:22:12 +0200 |
commit | 8bb4fc1039f8f97534bd2ab5cc3f42e7d753a5a0 (patch) | |
tree | 506d79f178a1b46aa5345f44175d7798bc12fabc /nixos/modules/system/boot/systemd.nix | |
parent | 89ef1a1756098bd9afd857484bf9581e37af6069 (diff) | |
download | nixpkgs-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.nix | 4 |
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"; |