summary refs log tree commit diff
path: root/nixos/modules/virtualisation/nixos-containers.nix
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2020-01-08 20:18:26 +0100
committerAndreas Rammhold <andreas@rammhold.de>2020-05-01 13:33:54 +0200
commit819e8bb35f4a8371ee6af77dba9b8860041956b6 (patch)
treeb2f03dda5a0b71391e6dd1e68019db71241044b7 /nixos/modules/virtualisation/nixos-containers.nix
parentbb9b61e2b7d1dd14d9685bb188d13f45cdf21ad5 (diff)
downloadnixpkgs-819e8bb35f4a8371ee6af77dba9b8860041956b6.tar
nixpkgs-819e8bb35f4a8371ee6af77dba9b8860041956b6.tar.gz
nixpkgs-819e8bb35f4a8371ee6af77dba9b8860041956b6.tar.bz2
nixpkgs-819e8bb35f4a8371ee6af77dba9b8860041956b6.tar.lz
nixpkgs-819e8bb35f4a8371ee6af77dba9b8860041956b6.tar.xz
nixpkgs-819e8bb35f4a8371ee6af77dba9b8860041956b6.tar.zst
nixpkgs-819e8bb35f4a8371ee6af77dba9b8860041956b6.zip
nixos/networkd: rename the networkd dhcpConfig option to dhcpV4Config
This follows upstreams change in documentation. While the `[DHCP]`
section might still work it is undocumented and we should probably not
be using it anymore. Users can just upgrade to the new option without
much hassle.

I had to create a bit of custom module deprecation code since the usual
approach doesn't support wildcards in the path.
Diffstat (limited to 'nixos/modules/virtualisation/nixos-containers.nix')
-rw-r--r--nixos/modules/virtualisation/nixos-containers.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/nixos-containers.nix b/nixos/modules/virtualisation/nixos-containers.nix
index 016d68ea301..b0fa03917c8 100644
--- a/nixos/modules/virtualisation/nixos-containers.nix
+++ b/nixos/modules/virtualisation/nixos-containers.nix
@@ -546,7 +546,7 @@ in
 
                 Note that this option might require to do some adjustments to the container configuration,
                 e.g. you might want to set
-                <varname>systemd.network.networks.$interface.dhcpConfig.ClientIdentifier</varname> to "mac"
+                <varname>systemd.network.networks.$interface.dhcpV4Config.ClientIdentifier</varname> to "mac"
                 if you use <varname>macvlans</varname> option.
                 This way dhcp client identifier will be stable between the container restarts.