about summary refs log tree commit diff
path: root/nixos/modules/system
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/system
parent69920dafbffcd757acff23f659263ec4b952a017 (diff)
downloadnixlib-3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.tar
nixlib-3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.tar.gz
nixlib-3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.tar.bz2
nixlib-3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.tar.lz
nixlib-3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.tar.xz
nixlib-3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.tar.zst
nixlib-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/system')
-rw-r--r--nixos/modules/system/boot/loader/grub/grub.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/loader/grub/grub.nix b/nixos/modules/system/boot/loader/grub/grub.nix
index 4e4d14985b0d..84753d77cc4c 100644
--- a/nixos/modules/system/boot/loader/grub/grub.nix
+++ b/nixos/modules/system/boot/loader/grub/grub.nix
@@ -684,7 +684,7 @@ in
           assertion = if args.efiSysMountPoint == null then true else hasPrefix "/" args.efiSysMountPoint;
           message = "EFI paths must be absolute, not ${args.efiSysMountPoint}";
         }
-      ] ++ flip map args.devices (device: {
+      ] ++ foreach args.devices (device: {
         assertion = device == "nodev" || hasPrefix "/" device;
         message = "GRUB devices must be absolute paths, not ${device} in ${args.path}";
       }));