Compare commits

3 Commits

Author SHA1 Message Date
Sovran_Systems
8413093d43 Merge pull request #139 from naturallaw777/copilot/fix-flake-lock-issue
installer: pre-resolve flake lock to staging-dev instead of deleting it
2026-04-07 21:49:58 -05:00
copilot-swe-agent[bot]
1a8a1736bf fix: pre-resolve flake lock to staging-dev during installation
Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/14550e27-a253-453b-b454-097575e924fa

Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
2026-04-08 02:48:59 +00:00
copilot-swe-agent[bot]
51c7d172b3 Initial plan 2026-04-08 02:46:49 +00:00

View File

@@ -966,7 +966,9 @@ class InstallerWindow(Adw.ApplicationWindow):
if proc.returncode != 0: if proc.returncode != 0:
log(proc.stderr) log(proc.stderr)
raise RuntimeError(proc.stderr.strip() or "Failed to write deployed flake.nix") 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) GLib.idle_add(self.push_complete)