Revert "networkd: also load builtin modules"

This reverts commit d514dc220e.

breaks unpredicable network interfaces: https://github.com/NixOS/nixpkgs/pull/29768#issuecomment-370172863
This commit is contained in:
Jörg Thalheim 2018-03-04 06:29:08 +00:00
parent 1aa59bfd3f
commit a5dcde1a6f

View File

@ -650,11 +650,7 @@ let
unitFiles = map (name: {
target = "systemd/network/${name}";
source = "${cfg.units.${name}.unit}/${name}";
}) (attrNames cfg.units) ++
(map (entry: {
target = "systemd/network/${entry}";
source = "${config.systemd.package}/lib/systemd/network/${entry}";
}) (attrNames (builtins.readDir "${config.systemd.package}/lib/systemd/network")));
}) (attrNames cfg.units);
in
{