mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-22 03:51:27 +00:00
nix flake lock /etc/nixos --update-input sp-modules
This commit is contained in:
parent
a6713df931
commit
05e395d6af
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue