Compare commits
6 Commits
c42962f6da
...
ca11cbbc79
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca11cbbc79 | ||
|
|
6584b63c36 | ||
|
|
88cac6c1e9 | ||
|
|
ef39040919 | ||
|
|
ca275c45de | ||
|
|
fee6035de0 |
@@ -730,15 +730,25 @@ class InstallerWindow(Adw.ApplicationWindow):
|
|||||||
|
|
||||||
# ── Now run disko on a clean disk ──
|
# ── Now run disko on a clean disk ──
|
||||||
GLib.idle_add(append_text, buf, "\n=== Partitioning drives ===\n")
|
GLib.idle_add(append_text, buf, "\n=== Partitioning drives ===\n")
|
||||||
cmd = [
|
cmd_destroy = [
|
||||||
"sudo", "disko", "--mode", "destroy,format,mount",
|
"sudo", "disko", "--mode", "destroy",
|
||||||
"--yes-wipe-all-disks",
|
"--yes-wipe-all-disks",
|
||||||
f"{FLAKE}/iso/disko.nix",
|
f"{FLAKE}/iso/disko.nix",
|
||||||
"--arg", "device", boot_path
|
"--arg", "device", boot_path
|
||||||
]
|
]
|
||||||
if data_path:
|
if data_path:
|
||||||
cmd += ["--arg", "dataDevice", data_path]
|
cmd_destroy += ["--arg", "dataDevice", data_path]
|
||||||
run_stream(cmd, buf)
|
run_stream(cmd_destroy, buf)
|
||||||
|
|
||||||
|
GLib.idle_add(append_text, buf, "\n=== Formatting and mounting drives ===\n")
|
||||||
|
cmd_format = [
|
||||||
|
"sudo", "disko", "--mode", "format,mount",
|
||||||
|
f"{FLAKE}/iso/disko.nix",
|
||||||
|
"--arg", "device", boot_path
|
||||||
|
]
|
||||||
|
if data_path:
|
||||||
|
cmd_format += ["--arg", "dataDevice", data_path]
|
||||||
|
run_stream(cmd_format, buf)
|
||||||
|
|
||||||
GLib.idle_add(append_text, buf, "\n=== Generating hardware config ===\n")
|
GLib.idle_add(append_text, buf, "\n=== Generating hardware config ===\n")
|
||||||
run_stream(["sudo", "nixos-generate-config", "--root", "/mnt"], buf)
|
run_stream(["sudo", "nixos-generate-config", "--root", "/mnt"], buf)
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ EOF
|
|||||||
# ── RTL (LAN access) ────────────────────────────
|
# ── RTL (LAN access) ────────────────────────────
|
||||||
cat >> /run/caddy/Caddyfile <<EOF
|
cat >> /run/caddy/Caddyfile <<EOF
|
||||||
|
|
||||||
http://127.0.0.1:3051, http://sovransystemsos.local:3051 {
|
:3051 {
|
||||||
reverse_proxy :3050
|
reverse_proxy :3050
|
||||||
encode gzip zstd
|
encode gzip zstd
|
||||||
}
|
}
|
||||||
@@ -165,7 +165,7 @@ EOF
|
|||||||
# ── Mempool (LAN access) ────────────────────────
|
# ── Mempool (LAN access) ────────────────────────
|
||||||
cat >> /run/caddy/Caddyfile <<EOF
|
cat >> /run/caddy/Caddyfile <<EOF
|
||||||
|
|
||||||
http://127.0.0.1:60847, http://sovransystemsos.local:60847 {
|
:60847 {
|
||||||
reverse_proxy :60845
|
reverse_proxy :60845
|
||||||
encode gzip zstd
|
encode gzip zstd
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -293,5 +293,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 3051 8937 60847 ];
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user