summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2018-03-01 14:56:58 -0500
committerShea Levy <shea@shealevy.com>2018-03-01 14:56:58 -0500
commit95579af5ec0a282d8ab2fccfeeff445c2c63c74f (patch)
tree57b1bb741d574361f7e467d81f29b0eef0b20ebe /nixos/modules/system
parenta486cb1af61dd88579de254637ecd4b4d3fc3173 (diff)
parent810dd0f9844e56efec66bfbf82c5e0412acbcba7 (diff)
downloadnixlib-95579af5ec0a282d8ab2fccfeeff445c2c63c74f.tar
nixlib-95579af5ec0a282d8ab2fccfeeff445c2c63c74f.tar.gz
nixlib-95579af5ec0a282d8ab2fccfeeff445c2c63c74f.tar.bz2
nixlib-95579af5ec0a282d8ab2fccfeeff445c2c63c74f.tar.lz
nixlib-95579af5ec0a282d8ab2fccfeeff445c2c63c74f.tar.xz
nixlib-95579af5ec0a282d8ab2fccfeeff445c2c63c74f.tar.zst
nixlib-95579af5ec0a282d8ab2fccfeeff445c2c63c74f.zip
Merge remote-tracking branch 'origin/staging' into cross-nixos
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/networkd.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index eea10613ea58..7bf7a51a2417 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -650,7 +650,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
 
 {