Harden secret recipes, document Serena/REA caveats, overwrite stale home-manager backups

The Telegram secret recipes no longer depend on openssl (the host does not
install it): they read 16 bytes from /dev/urandom with od and check the
length before anything is encrypted, so a failure cannot store an empty
secret. README, secrets/README.md and the proxy-suite header and warning
agree.

README: Serena's dashboard is started but not opened and listens on
127.0.0.1 only; the nix-ld note for REA now distinguishes standalone npm
executables from .node add-ons; the Serena pin notes mention the
stdenv.isLinux/isDarwin warnings.

home-manager.overwriteBackup = true so a rewritten gtk.css or qt6ct.conf
does not make a later switch fail on an existing .hm-backup.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JZ16yf4acmaSiHq81vyQ6Z
This commit is contained in:
Claude committed 2026-10-13 01:43:30 +00:00
1 parent ca224d5e66
commit 9407c0e453
4 files changed
+34 -17

No files matched your search

+3 -4
View File
@@ -1,6 +1,6 @@
# proxy-suite (github:FUFSoB/proxy-suite-flake): zapret DPI bypass, the
# Telegram WebSocket proxy and the GUI. The MTProto secret is an agenix secret:
# secrets/tg-ws-proxy-secret.age the secret (`openssl rand -hex 16`)
# secrets/tg-ws-proxy-secret.age the secret (32 hex digits)
# (nix run .#secret-from-file -- tg-ws-proxy-secret.age <file>)
# proxy-suite reads it through systemd LoadCredential, so root ownership is
# enough. Without the file the Telegram proxy stays off and a warning says so.
@@ -59,9 +59,8 @@ in
warnings = lib.optional (!hasTgSecret) ''
The Telegram WebSocket proxy (services.proxy-suite.tgWsProxy) is off:
secrets/tg-ws-proxy-secret.age is missing. Create a new secret with
`openssl rand -hex 16`, then `nix run .#secret-from-file -- tg-ws-proxy-secret.age <file>`
and `git add` it.
secrets/tg-ws-proxy-secret.age is missing. Create it with the command in
secrets/README.md (32 random hex digits) and `git add` it.
'';
};
}