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:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user