about summary refs log tree commit diff
path: root/nixos/tests/networking.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/tests/networking.nix
parent69920dafbffcd757acff23f659263ec4b952a017 (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/tests/networking.nix')
-rw-r--r--nixos/tests/networking.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/networking.nix b/nixos/tests/networking.nix
index ed9f287d55821..9553b52850e94 100644
--- a/nixos/tests/networking.nix
+++ b/nixos/tests/networking.nix
@@ -21,7 +21,7 @@ let
         useNetworkd = networkd;
         firewall.checkReversePath = true;
         firewall.allowedUDPPorts = [ 547 ];
-        interfaces = mkOverride 0 (listToAttrs (flip map vlanIfs (n:
+        interfaces = mkOverride 0 (listToAttrs (foreach vlanIfs (n:
           nameValuePair "eth${toString n}" {
             ipv4.addresses = [ { address = "192.168.${toString n}.1"; prefixLength = 24; } ];
             ipv6.addresses = [ { address = "fd00:1234:5678:${toString n}::1"; prefixLength = 64; } ];