summary refs log tree commit diff
path: root/nixos/tests/predictable-interface-names.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2019-09-23 16:37:58 +0200
committerRobin Gloster <mail@glob.in>2019-09-24 10:20:16 +0200
commitc26c6241eae93985c33590401fda971d7574c136 (patch)
tree1f8817c8c1420940050eb0cff117ff6595eb985c /nixos/tests/predictable-interface-names.nix
parent5426932f7c664a8765d6904af20ef21310e95d4f (diff)
downloadnixpkgs-c26c6241eae93985c33590401fda971d7574c136.tar
nixpkgs-c26c6241eae93985c33590401fda971d7574c136.tar.gz
nixpkgs-c26c6241eae93985c33590401fda971d7574c136.tar.bz2
nixpkgs-c26c6241eae93985c33590401fda971d7574c136.tar.lz
nixpkgs-c26c6241eae93985c33590401fda971d7574c136.tar.xz
nixpkgs-c26c6241eae93985c33590401fda971d7574c136.tar.zst
nixpkgs-c26c6241eae93985c33590401fda971d7574c136.zip
networking.useDHCP: disallow for networkd
This setting will be removed with the switch to systemd-networkd. The
use of per interface config is encouraged instead.
Diffstat (limited to 'nixos/tests/predictable-interface-names.nix')
-rw-r--r--nixos/tests/predictable-interface-names.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/predictable-interface-names.nix b/nixos/tests/predictable-interface-names.nix
index 85047f66f23..194b4dafa77 100644
--- a/nixos/tests/predictable-interface-names.nix
+++ b/nixos/tests/predictable-interface-names.nix
@@ -16,6 +16,7 @@ in pkgs.lib.listToAttrs (pkgs.lib.crossLists (predictable: withNetworkd: {
       networking.usePredictableInterfaceNames = lib.mkForce predictable;
       networking.useNetworkd = withNetworkd;
       networking.dhcpcd.enable = !withNetworkd;
+      networking.useDHCP = !withNetworkd;
     };
 
     testScript = ''