summaryrefslogtreecommitdiffstats
path: root/nixos/lib/build-vms.nix
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2017-12-03 05:13:14 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2018-02-17 14:01:24 +0100
commitc1bed05e341756f7fdfa73035c7f1e078e49be3d (patch)
tree462f47865c4ff0949484d0aaa2e3845d0eb2ddc7 /nixos/lib/build-vms.nix
parentf41111c4da9a7eb5cade95d945eec7576757d27d (diff)
nixos/networking-interfaces: rename IP addresses/routes options
Diffstat (limited to 'nixos/lib/build-vms.nix')
-rw-r--r--nixos/lib/build-vms.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/lib/build-vms.nix b/nixos/lib/build-vms.nix
index 4685fe6914a2..e14105f5f011 100644
--- a/nixos/lib/build-vms.nix
+++ b/nixos/lib/build-vms.nix
@@ -51,7 +51,7 @@ rec {
let
interfacesNumbered = zipLists config.virtualisation.vlans (range 1 255);
interfaces = flip map interfacesNumbered ({ fst, snd }:
- nameValuePair "eth${toString snd}" { ip4 =
+ nameValuePair "eth${toString snd}" { ipv4.addresses =
[ { address = "192.168.${toString fst}.${toString m.snd}";
prefixLength = 24;
} ];
@@ -64,7 +64,7 @@ rec {
networking.interfaces = listToAttrs interfaces;
networking.primaryIPAddress =
- optionalString (interfaces != []) (head (head interfaces).value.ip4).address;
+ optionalString (interfaces != []) (head (head interfaces).value.ipv4.addresses).address;
# Put the IP addresses of all VMs in this machine's
# /etc/hosts file. If a machine has multiple