git.iko.soy/typeable/nixpkgs
on master help sign in
networkd: also load builtin modules
commitd514dc220e9fad27a46ef329360bb8db2cdf22ea authorJoerg Thalheim <joerg@thalheim.io> dateMon 25 Sep 2017, 10:43 (9 years ago) parentf8078db
1 file changed+5−1
nixos/modules/system/boot/networkd.nix+5−1
nixos/modules/system/boot/networkd.nix+5−1
@@ -649,7 +649,11 @@ let
649649 unitFiles = map (name: {
650650 target = "systemd/network/${name}";
651651 source = "${cfg.units.${name}.unit}/${name}";
652− }) (attrNames cfg.units);
652+ }) (attrNames cfg.units) ++
653+ (map (entry: {
654+ target = "systemd/network/${entry}";
655+ source = "${config.systemd.package}/lib/systemd/network/${entry}";
656+ }) (attrNames (builtins.readDir "${config.systemd.package}/lib/systemd/network")));
653657in
654658
655659{