summary refs log tree commit diff
path: root/nixos/modules/services/networking/consul.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/networking/consul.nix
parent91bb646e98808d594b339d3386f7963a546ccfb4 (diff)
downloadnixpkgs-0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3.tar
nixpkgs-0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3.tar.gz
nixpkgs-0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3.tar.bz2
nixpkgs-0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3.tar.lz
nixpkgs-0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3.tar.xz
nixpkgs-0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3.tar.zst
nixpkgs-0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3.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/networking/consul.nix')
-rw-r--r--nixos/modules/services/networking/consul.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/consul.nix b/nixos/modules/services/networking/consul.nix
index 3a92a883fbf..f080f12eacc 100644
--- a/nixos/modules/services/networking/consul.nix
+++ b/nixos/modules/services/networking/consul.nix
@@ -15,7 +15,7 @@ let
     ++ cfg.extraConfigFiles;
 
   devices = attrValues (filterAttrs (_: i: i != null) cfg.interface);
-  systemdDevices = flip map devices
+  systemdDevices = forEach devices
     (i: "sys-subsystem-net-devices-${utils.escapeSystemdPath i}.device");
 in
 {