diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2019-05-11 00:10:08 +0200 |
---|---|---|
committer | Andreas Rammhold <andreas@rammhold.de> | 2019-06-03 15:05:15 +0200 |
commit | a32cd7d84a7c832574ef0f09862e41bf84709baf (patch) | |
tree | fea8df60428384611fdf808faaed3a668d430639 /nixos/modules/tasks | |
parent | 4743ad7392152d3745dee552aebe8a6b67e189a1 (diff) | |
download | nixpkgs-a32cd7d84a7c832574ef0f09862e41bf84709baf.tar nixpkgs-a32cd7d84a7c832574ef0f09862e41bf84709baf.tar.gz nixpkgs-a32cd7d84a7c832574ef0f09862e41bf84709baf.tar.bz2 nixpkgs-a32cd7d84a7c832574ef0f09862e41bf84709baf.tar.lz nixpkgs-a32cd7d84a7c832574ef0f09862e41bf84709baf.tar.xz nixpkgs-a32cd7d84a7c832574ef0f09862e41bf84709baf.tar.zst nixpkgs-a32cd7d84a7c832574ef0f09862e41bf84709baf.zip |
nixos/networkd: use `no` instead of `none` for `DHCP=` option
systemd has deprecated the use of `none` and recommends using `no` instead.
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r-- | nixos/modules/tasks/network-interfaces-systemd.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces-systemd.nix b/nixos/modules/tasks/network-interfaces-systemd.nix index 2318bdd1d58..dd9ba9eec42 100644 --- a/nixos/modules/tasks/network-interfaces-systemd.nix +++ b/nixos/modules/tasks/network-interfaces-systemd.nix @@ -12,7 +12,7 @@ let i.ipv4.addresses ++ optionals cfg.enableIPv6 i.ipv6.addresses; - dhcpStr = useDHCP: if useDHCP == true || useDHCP == null then "both" else "none"; + dhcpStr = useDHCP: if useDHCP == true || useDHCP == null then "both" else "no"; slaves = concatLists (map (bond: bond.interfaces) (attrValues cfg.bonds)) |