nixos/networkd: use `no` instead of `none` for `DHCP=` option

systemd has deprecated the use of `none` and recommends using `no`
instead.
wip/yesman
Andreas Rammhold 5 years ago
parent 4743ad7392
commit a32cd7d84a
No known key found for this signature in database
GPG Key ID: 74908259861E8386
  1. 2
      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))

Loading…
Cancel
Save