nixos/testing/network.nix: Avoid deprecated .config

This commit is contained in:
Robert Hensing 2022-06-06 20:30:17 +02:00
parent 3c09cb2363
commit 124b0c4abc

View File

@ -38,7 +38,7 @@ let
# virtualisation.vlans option).
networking.extraHosts = flip concatMapStrings machines
(m':
let config = (getAttr m' nodes).config; in
let config = getAttr m' nodes; in
optionalString (config.networking.primaryIPAddress != "")
("${config.networking.primaryIPAddress} " +
optionalString (config.networking.domain != null)