diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2020-01-08 20:18:26 +0100 |
---|---|---|
committer | Andreas Rammhold <andreas@rammhold.de> | 2020-05-01 13:33:54 +0200 |
commit | 819e8bb35f4a8371ee6af77dba9b8860041956b6 (patch) | |
tree | b2f03dda5a0b71391e6dd1e68019db71241044b7 /nixos/modules/virtualisation | |
parent | bb9b61e2b7d1dd14d9685bb188d13f45cdf21ad5 (diff) | |
download | nixlib-819e8bb35f4a8371ee6af77dba9b8860041956b6.tar nixlib-819e8bb35f4a8371ee6af77dba9b8860041956b6.tar.gz nixlib-819e8bb35f4a8371ee6af77dba9b8860041956b6.tar.bz2 nixlib-819e8bb35f4a8371ee6af77dba9b8860041956b6.tar.lz nixlib-819e8bb35f4a8371ee6af77dba9b8860041956b6.tar.xz nixlib-819e8bb35f4a8371ee6af77dba9b8860041956b6.tar.zst nixlib-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')
-rw-r--r-- | nixos/modules/virtualisation/nixos-containers.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/nixos-containers.nix b/nixos/modules/virtualisation/nixos-containers.nix index 016d68ea3018..b0fa03917c82 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. |