diff options
author | Joerg Thalheim <joerg@thalheim.io> | 2017-09-25 10:43:37 +0100 |
---|---|---|
committer | Joerg Thalheim <joerg@thalheim.io> | 2017-09-25 11:27:57 +0100 |
commit | d514dc220e9fad27a46ef329360bb8db2cdf22ea (patch) | |
tree | 90c60355bdecef7028ea724ba6e9e5c392c64d88 /nixos/modules/system/boot | |
parent | f8078db863bf43a1d2dffa845d884e25a996a679 (diff) | |
download | nixlib-d514dc220e9fad27a46ef329360bb8db2cdf22ea.tar nixlib-d514dc220e9fad27a46ef329360bb8db2cdf22ea.tar.gz nixlib-d514dc220e9fad27a46ef329360bb8db2cdf22ea.tar.bz2 nixlib-d514dc220e9fad27a46ef329360bb8db2cdf22ea.tar.lz nixlib-d514dc220e9fad27a46ef329360bb8db2cdf22ea.tar.xz nixlib-d514dc220e9fad27a46ef329360bb8db2cdf22ea.tar.zst nixlib-d514dc220e9fad27a46ef329360bb8db2cdf22ea.zip |
networkd: also load builtin modules
Diffstat (limited to 'nixos/modules/system/boot')
-rw-r--r-- | nixos/modules/system/boot/networkd.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index 9d2cea3ad165..b7beff1e3c36 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -649,7 +649,11 @@ let unitFiles = map (name: { target = "systemd/network/${name}"; source = "${cfg.units.${name}.unit}/${name}"; - }) (attrNames cfg.units); + }) (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"))); in { |