Merge pull request #139 from naturallaw777/copilot/fix-flake-lock-issue

installer: pre-resolve flake lock to staging-dev instead of deleting it
This commit is contained in:
Sovran_Systems
2026-04-07 21:49:58 -05:00
committed by GitHub

View File

@@ -966,7 +966,9 @@ class InstallerWindow(Adw.ApplicationWindow):
if proc.returncode != 0:
log(proc.stderr)
raise RuntimeError(proc.stderr.strip() or "Failed to write deployed flake.nix")
run(["sudo", "rm", "-f", "/mnt/etc/nixos/flake.lock"])
GLib.idle_add(append_text, buf, "Locking flake to staging-dev...\n")
run_stream(["sudo", "nix", "--extra-experimental-features", "nix-command flakes",
"flake", "lock", "/mnt/etc/nixos"], buf)
GLib.idle_add(self.push_complete)