Skip to content

Commit

Permalink
nixos/top-level.nix: Make independent of systemd.package
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Dec 9, 2021
1 parent db05855 commit 8313fd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion nixos/modules/system/activation/top-level.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ let
buildCommand = systemBuilder;

inherit (pkgs) coreutils;
systemd = config.systemd.package;
shell = "${pkgs.bash}/bin/sh";
su = "${pkgs.shadow.su}/bin/su";
utillinux = pkgs.util-linux;
Expand Down
3 changes: 3 additions & 0 deletions nixos/modules/system/boot/stage-2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ in

system.build.bootStage2 = bootStage2;

system.systemBuilderAttrs = {
systemd = config.systemd.package;
};
system.systemBuilderCommands = ''
cp ${config.system.build.bootStage2} $out/init
substituteInPlace $out/init --subst-var-by systemConfig $out
Expand Down

0 comments on commit 8313fd3

Please sign in to comment.