summary refs log tree commit diff
path: root/nixos/modules/services/x11/xautolock.nix
diff options
context:
space:
mode:
authordanbst <abcz2.uprola@gmail.com>2019-07-14 13:46:10 +0300
committerdanbst <abcz2.uprola@gmail.com>2019-07-14 13:46:10 +0300
commit3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca (patch)
tree49c4e3646c960459328b09bcac5d7812d7a2b909 /nixos/modules/services/x11/xautolock.nix
parent69920dafbffcd757acff23f659263ec4b952a017 (diff)
downloadnixpkgs-3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.tar
nixpkgs-3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.tar.gz
nixpkgs-3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.tar.bz2
nixpkgs-3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.tar.lz
nixpkgs-3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.tar.xz
nixpkgs-3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.tar.zst
nixpkgs-3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.zip
mass replace "flip map -> foreach"
See `foreach`-introduction commit.
```
rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /foreach /g'
```
Diffstat (limited to 'nixos/modules/services/x11/xautolock.nix')
-rw-r--r--nixos/modules/services/x11/xautolock.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/xautolock.nix b/nixos/modules/services/x11/xautolock.nix
index cbe000058dc..51bdcae992e 100644
--- a/nixos/modules/services/x11/xautolock.nix
+++ b/nixos/modules/services/x11/xautolock.nix
@@ -129,7 +129,7 @@ in
           assertion = cfg.killer != null -> cfg.killtime >= 10;
           message = "killtime has to be at least 10 minutes according to `man xautolock`";
         }
-      ] ++ (lib.flip map [ "locker" "notifier" "nowlocker" "killer" ]
+      ] ++ (lib.foreach [ "locker" "notifier" "nowlocker" "killer" ]
         (option:
         {
           assertion = cfg."${option}" != null -> builtins.substring 0 1 cfg."${option}" == "/";