summary refs log tree commit diff
path: root/nixos/modules/services/x11/xserver.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/xserver.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/xserver.nix')
-rw-r--r--nixos/modules/services/x11/xserver.nix2
1 files changed, 1 insertions, 1 deletions
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