Fix flake update target

This commit is contained in:
ltadeu6 2026-04-26 16:33:36 -03:00
parent e3e2fa7566
commit 2c14755e12

View file

@ -880,7 +880,7 @@ in {
rm -f "$repo_dir/flake.lock" rm -f "$repo_dir/flake.lock"
fi fi
run_as_user /run/current-system/sw/bin/nix flake update --commit-lock-file "$repo_dir" run_as_user /run/current-system/sw/bin/nix flake update --commit-lock-file --flake "$repo_dir"
/run/current-system/sw/bin/nixos-rebuild switch --flake "$repo_dir#Nixos" /run/current-system/sw/bin/nixos-rebuild switch --flake "$repo_dir#Nixos"
if [ -n "$backup" ] && [ -f "$backup" ]; then if [ -n "$backup" ] && [ -f "$backup" ]; then