From 5e9822ccc46f11b9cecfe08adbb51ac74b4c21f9 Mon Sep 17 00:00:00 2001 From: Philip Peterson Date: Sat, 30 May 2026 02:13:40 -0800 Subject: [PATCH] try fix vnc password --- nixos/linux.nix | 2 +- nixos/secrets/vnc-password.age | 8 ++++---- nixos/vnc-desktop/start.sh | 3 +++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/nixos/linux.nix b/nixos/linux.nix index 145e6c5..b052b51 100644 --- a/nixos/linux.nix +++ b/nixos/linux.nix @@ -290,7 +290,7 @@ in { "blog-quine" = { autoStart = true; - image = "quineglobal/blog-quine@sha256:a1bdd5c7efe059f9af8a6206ad3317280040e959f6bdff1cf1e4f2f27589bc25"; + image = "quineglobal/blog-quine@sha256:88097e4867a99a375db490bf7a989c122653cdb48bfdf6d9ad5e2f6a0bfb2d38"; volumes = []; environment = {}; ports = ["3010:8080"]; diff --git a/nixos/secrets/vnc-password.age b/nixos/secrets/vnc-password.age index eed6db0..6293532 100644 --- a/nixos/secrets/vnc-password.age +++ b/nixos/secrets/vnc-password.age @@ -1,5 +1,5 @@ age-encryption.org/v1 --> ssh-ed25519 NFD/vg ZScq11dQhcK72TVjmnwo7OXG8yarNhU6XFqo+n2XvCg -eXK/3Jp5J/kjjl3sRV1L4q0ZY2SEPZSEgTczqkLONJk ---- GV0KPgO/rZpKGL+6M/JW9dUzuoNiA0e3Nm2ubBhLgUc -sC+yb ܌64c#eM'pn \ No newline at end of file +-> ssh-ed25519 NFD/vg BPXpLwp8zZADR3vYGht8wEMrKCegRiHBkO22ZgHHrXU +nh3J6CscPxGpsdaKyL0q1a5EmROX3lVtZv1A7/pvm4s +--- UGCcZKsSD4opeR41BAsJT1Hi0OPLpkHyiGLuYPH/dwA +fMN}[kVͷtЭ"׌qfƚ F/x" Lbe;j"^'ZmX \ No newline at end of file diff --git a/nixos/vnc-desktop/start.sh b/nixos/vnc-desktop/start.sh index 3153ccc..ad030cc 100644 --- a/nixos/vnc-desktop/start.sh +++ b/nixos/vnc-desktop/start.sh @@ -11,6 +11,9 @@ rm -f /tmp/.X1-lock /tmp/.X11-unix/X1 echo "${VNC_PASSWORD:?VNC_PASSWORD must be set}" | vncpasswd -f > /root/.vnc/passwd chmod 600 /root/.vnc/passwd +# Set root password from environment +echo "root:${ROOT_PASSWORD:?ROOT_PASSWORD must be set}" | chpasswd + # Start Xvnc (headless X server + VNC server in one) Xvnc :1 \ -rfbport 5901 \