-11
nixos/modules/services/hardware/udev.nix
-11
nixos/modules/services/hardware/udev.nix
···-${lib.concatMapStringsSep "\n" (file: "ln -s ${file} $out/") (lib.mapAttrsToList (n: v: "${v.unit}/${n}") (lib.filterAttrs (n: _: hasSuffix ".link" n) config.systemd.network.units))}···binPackages = config.boot.initrd.services.udev.binPackages ++ [ config.boot.initrd.systemd.contents."/bin".source ];
······binPackages = config.boot.initrd.services.udev.binPackages ++ [ config.boot.initrd.systemd.contents."/bin".source ];
+107
-25
nixos/modules/system/boot/networkd.nix
+107
-25
nixos/modules/system/boot/networkd.nix
·········systemd.network.units = mapAttrs' (n: v: nameValuePair "${n}.link" (linkToUnit n v)) cfg.links;···systemd.network.units = mapAttrs' (n: v: nameValuePair "${n}.netdev" (netdevToUnit n v)) cfg.netdevs······networking.iproute2 = mkIf (cfg.config.addRouteTablesToIPRoute2 && cfg.config.routeTables != { }) {···
·········systemd.network.units = mapAttrs' (n: v: nameValuePair "${n}.link" (linkToUnit n v)) cfg.links;···systemd.network.units = mapAttrs' (n: v: nameValuePair "${n}.netdev" (netdevToUnit n v)) cfg.netdevs······networking.iproute2 = mkIf (cfg.config.addRouteTablesToIPRoute2 && cfg.config.routeTables != { }) {···+systemd.network.units = lib.filterAttrs (n: _: hasSuffix ".link" n) config.systemd.network.units;+systemd.storePaths = ["${config.boot.initrd.systemd.package}/lib/systemd/network/99-default.link"];
-9
nixos/modules/system/boot/systemd/initrd.nix
-9
nixos/modules/system/boot/systemd/initrd.nix
···
+1
nixos/tests/all-tests.nix
+1
nixos/tests/all-tests.nix
···
···
+31
-8
nixos/tests/predictable-interface-names.nix
+31
-8
nixos/tests/predictable-interface-names.nix
···-name = "${pkgs.lib.optionalString (!predictable) "un"}predictableInterfaceNames${pkgs.lib.optionalString withNetworkd "-with-networkd"}";
···
+45
nixos/tests/systemd-initrd-networkd.nix
+45
nixos/tests/systemd-initrd-networkd.nix
···
···+basic.succeed("[ $(stat -c '%U,%G' /run/systemd/netif/links) = systemd-network,systemd-network ]")