removed readFile of self which rebuilt every change

This commit is contained in:
Gerg-L 2023-07-03 18:50:21 -04:00
parent 1d2844a34f
commit ca1c54245f
6 changed files with 179 additions and 30 deletions

View file

@ -1,4 +1,4 @@
{unstable, ...}: {
_: {
lib,
config,
pkgs,
@ -9,9 +9,7 @@ let
useHostResolvConf = config.networking.resolvconf.enable && config.networking.useHostResolvConf;
bootStage2 = pkgs.substituteAll {
src = pkgs.runCommand "stage-2-init.sh" {} ''
sed '2i exec 1<>/dev/null' ${unstable}/nixos/modules/system/boot/stage-2-init.sh > $out
'';
src = ./stage-2-init.sh;
shellDebug = "${pkgs.bashInteractive}/bin/bash";
shell = "${pkgs.bash}/bin/bash";
inherit (config.boot) readOnlyNixStore systemdExecutable extraSystemdUnitPaths;