Make custom.nix read-write (644) on all new installs

Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/1606cde2-b484-4570-a64e-649f80384367

Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-30 17:45:45 +00:00
committed by GitHub
parent 459536d478
commit f0f690eae4
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -948,6 +948,7 @@ class InstallerWindow(Adw.ApplicationWindow):
if proc.returncode != 0: if proc.returncode != 0:
raise RuntimeError(f"Failed to write role-state.nix: {proc.stderr}") raise RuntimeError(f"Failed to write role-state.nix: {proc.stderr}")
run(["sudo", "cp", "/mnt/etc/nixos/custom.template.nix", "/mnt/etc/nixos/custom.nix"]) run(["sudo", "cp", "/mnt/etc/nixos/custom.template.nix", "/mnt/etc/nixos/custom.nix"])
run(["sudo", "chmod", "644", "/mnt/etc/nixos/custom.nix"])
# ── Step 4: Ready to install ────────────────────────────────────────── # ── Step 4: Ready to install ──────────────────────────────────────────
+1
View File
@@ -245,6 +245,7 @@ if [[ -n "$DEPLOY_KEY" || -n "$HEADSCALE_SERVER" ]]; then
} > /mnt/etc/nixos/custom.nix } > /mnt/etc/nixos/custom.nix
else else
cp /mnt/etc/nixos/custom.template.nix /mnt/etc/nixos/custom.nix cp /mnt/etc/nixos/custom.template.nix /mnt/etc/nixos/custom.nix
chmod 644 /mnt/etc/nixos/custom.nix
fi fi
# ── Write Headscale auth key if provided ───────────────────────────────────── # ── Write Headscale auth key if provided ─────────────────────────────────────