diff options
author | danbst <abcz2.uprola@gmail.com> | 2019-07-14 13:46:10 +0300 |
---|---|---|
committer | danbst <abcz2.uprola@gmail.com> | 2019-07-14 13:46:10 +0300 |
commit | 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca (patch) | |
tree | 49c4e3646c960459328b09bcac5d7812d7a2b909 /nixos/modules/services/x11 | |
parent | 69920dafbffcd757acff23f659263ec4b952a017 (diff) | |
download | nixpkgs-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')
-rw-r--r-- | nixos/modules/services/x11/xautolock.nix | 2 | ||||
-rw-r--r-- | nixos/modules/services/x11/xserver.nix | 2 |
2 files changed, 2 insertions, 2 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}" == "/"; diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix index 82730c5e80c..4d28a45c2ce 100644 --- a/nixos/modules/services/x11/xserver.nix +++ b/nixos/modules/services/x11/xserver.nix @@ -75,7 +75,7 @@ let in imap1 mkHead cfg.xrandrHeads; xrandrDeviceSection = let - monitors = flip map xrandrHeads (h: '' + monitors = foreach xrandrHeads (h: '' Option "monitor-${h.config.output}" "${h.name}" ''); # First option is indented through the space in the config but any |