nix flake lock /etc/nixos --update-input sp-modules

This commit is contained in:
Alexander Tomokhov 2023-12-27 13:10:35 +04:00
parent a6713df931
commit 05e395d6af

View file

@ -417,15 +417,12 @@ installNix() {
} }
infect() { infect() {
# this is needed solely for accepting the sp-module subflake # this is needed solely for accepting the sp-module sub-flake
# see https://github.com/NixOS/nix/issues/3978#issuecomment-952418478 # see https://github.com/NixOS/nix/issues/3978#issuecomment-952418478
/root/.nix-profile/bin/nix flake lock ${LOCAL_FLAKE_DIR} \ $NIX "${NIX_OPTS[@]}" flake lock ${LOCAL_FLAKE_DIR} --update-input sp-modules
--extra-experimental-features "nix-command flakes" \
--override-input sp-modules ${LOCAL_FLAKE_DIR}/sp-modules
echo "nix build the configuration flake..." echo "nix build the configuration flake..."
if ! /root/.nix-profile/bin/nix build \ if ! $NIX "${NIX_OPTS[@]}" build \
--extra-experimental-features "nix-command flakes" \
--profile /nix/var/nix/profiles/system \ --profile /nix/var/nix/profiles/system \
${LOCAL_FLAKE_DIR}/#nixosConfigurations.sp-nixos.config.system.build.toplevel ${LOCAL_FLAKE_DIR}/#nixosConfigurations.sp-nixos.config.system.build.toplevel
then then