From a32cd7d84a7c832574ef0f09862e41bf84709baf Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Sat, 11 May 2019 00:10:08 +0200 Subject: [PATCH] nixos/networkd: use `no` instead of `none` for `DHCP=` option systemd has deprecated the use of `none` and recommends using `no` instead. --- nixos/modules/tasks/network-interfaces-systemd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/tasks/network-interfaces-systemd.nix b/nixos/modules/tasks/network-interfaces-systemd.nix index 2318bdd1d582..dd9ba9eec426 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))