diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2017-12-03 05:13:14 +0100 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2018-02-17 14:01:24 +0100 |
commit | c1bed05e341756f7fdfa73035c7f1e078e49be3d (patch) | |
tree | 462f47865c4ff0949484d0aaa2e3845d0eb2ddc7 /nixos/lib | |
parent | f41111c4da9a7eb5cade95d945eec7576757d27d (diff) | |
download | nixlib-c1bed05e341756f7fdfa73035c7f1e078e49be3d.tar nixlib-c1bed05e341756f7fdfa73035c7f1e078e49be3d.tar.gz nixlib-c1bed05e341756f7fdfa73035c7f1e078e49be3d.tar.bz2 nixlib-c1bed05e341756f7fdfa73035c7f1e078e49be3d.tar.lz nixlib-c1bed05e341756f7fdfa73035c7f1e078e49be3d.tar.xz nixlib-c1bed05e341756f7fdfa73035c7f1e078e49be3d.tar.zst nixlib-c1bed05e341756f7fdfa73035c7f1e078e49be3d.zip |
nixos/networking-interfaces: rename IP addresses/routes options
Diffstat (limited to 'nixos/lib')
-rw-r--r-- | nixos/lib/build-vms.nix | 4 |
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 |