From 04260e08521805f01dc116b56f1dd9dc41f3ac65 Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Sat, 18 Nov 2023 08:15:13 +0400 Subject: [PATCH] nix flake lock --update-input sp-modules --- nixos-infect | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos-infect b/nixos-infect index 2a26b73..f23665e 100755 --- a/nixos-infect +++ b/nixos-infect @@ -263,7 +263,8 @@ installNix() { fi echo "Running nix installer..." - if $SHELL "${tmpNixInstall}" --daemon; then + if $SHELL "${tmpNixInstall}" \ + --daemon --no-channel-add --daemon-user-count 4; then echo "Nix is installed" rm "${tmpNixInstall}" else @@ -295,6 +296,9 @@ infect() { # is it needed? # source ~/.nix-profile/etc/profile.d/nix.sh + cd ${LOCAL_FLAKE_DIR} + /root/.nix-profile/bin/nix flake lock --update-input sp-modules + echo "nix build the configuration flake..." if ! /root/.nix-profile/bin/nix build \ --extra-experimental-features "nix-command flakes" \