git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #29768 from Mic92/networkd

networkd: also load builtin modules

commit12422149a73890c07e19d6929a75ee1b1dfad48d authorJörg Thalheim <Mic92@users.noreply.github.com> dateThu 1 Mar 2018, 09:16 (9 years ago) parent8ed4e67d514dc2
1 file changed+5−1
nixos/modules/system/boot/networkd.nix+5−1
nixos/modules/system/boot/networkd.nix+5−1
@@ -650,7 +650,11 @@ let
650650 unitFiles = map (name: {
651651 target = "systemd/network/${name}";
652652 source = "${cfg.units.${name}.unit}/${name}";
653− }) (attrNames cfg.units);
653+ }) (attrNames cfg.units) ++
654+ (map (entry: {
655+ target = "systemd/network/${entry}";
656+ source = "${config.systemd.package}/lib/systemd/network/${entry}";
657+ }) (attrNames (builtins.readDir "${config.systemd.package}/lib/systemd/network")));
654658in
655659
656660{