summary refs log tree commit diff
path: root/nixos/modules/tasks
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2019-05-11 00:10:08 +0200
committerAndreas Rammhold <andreas@rammhold.de>2019-06-03 15:05:15 +0200
commita32cd7d84a7c832574ef0f09862e41bf84709baf (patch)
treefea8df60428384611fdf808faaed3a668d430639 /nixos/modules/tasks
parent4743ad7392152d3745dee552aebe8a6b67e189a1 (diff)
downloadnixpkgs-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.nix2
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))