summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/x11/xautolock.nix
diff options
context:
space:
mode:
authordanbst <abcz2.uprola@gmail.com>2019-08-05 14:03:38 +0300
committerdanbst <abcz2.uprola@gmail.com>2019-08-05 14:03:38 +0300
commit0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3 (patch)
tree121d16875c362cecba39cee43a9602f71d870fe1 /nixos/modules/services/x11/xautolock.nix
parent91bb646e98808d594b339d3386f7963a546ccfb4 (diff)
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 cbe000058dc6..10eef8aefbcd 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}" == "/";