Skip to content

Commit b4beb32

Browse files
committed
networking: use networkd
otherwise we would need to add each interface individually, which is quite difficult without stable interface names. So let's use networkd, which is overall the better solution anyway.
1 parent 85334b9 commit b4beb32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/nixos/networking/default.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
./broadcom.nix
55
./intel.nix
66
];
7-
config.networking = lib.mkIf (builtins.length (config.facter.report.network_interface or [ ]) > 0) {
8-
useDHCP = lib.mkDefault true;
7+
config = lib.mkIf (builtins.length (config.facter.report.network_interface or [ ]) > 0) {
8+
networking.useDHCP = lib.mkDefault true;
9+
networking.useNetworkd = lib.mkDefault true;
910
};
1011
}

0 commit comments

Comments
 (0)