mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
nixos/testing/network.nix: Avoid deprecated .config
This commit is contained in:
parent
3c09cb2363
commit
124b0c4abc
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ let
|
||||||
# virtualisation.vlans option).
|
# virtualisation.vlans option).
|
||||||
networking.extraHosts = flip concatMapStrings machines
|
networking.extraHosts = flip concatMapStrings machines
|
||||||
(m':
|
(m':
|
||||||
let config = (getAttr m' nodes).config; in
|
let config = getAttr m' nodes; in
|
||||||
optionalString (config.networking.primaryIPAddress != "")
|
optionalString (config.networking.primaryIPAddress != "")
|
||||||
("${config.networking.primaryIPAddress} " +
|
("${config.networking.primaryIPAddress} " +
|
||||||
optionalString (config.networking.domain != null)
|
optionalString (config.networking.domain != null)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue