mirror of
https://github.com/oqyude/nixos.git
synced 2026-10-07 20:47:14 +03:00
xlib+users: centralize opencode server.env path
The path '/home/<user>/.config/opencode/server.env' was duplicated between users.nix (sops materialization) and home/modules/opencode.nix (programs.opencode.web.environmentFile). Drift between the two was a silent auth-bypass vector: if one moved, the systemd unit would either fail to find OPENCODE_SERVER_PASSWORD or skip EnvironmentFile entirely. Single source in lib/xlib/dirs.nix; both call sites now read from it.
This commit is contained in:
@@ -14,6 +14,7 @@ in
|
||||
server-home
|
||||
services-mnt-folder
|
||||
;
|
||||
opencode-server-env = "${user-home}/.config/opencode/server.env";
|
||||
|
||||
user-storage = "${user-home}/Storage";
|
||||
wsl-storage = "${wsl-home}/Storage";
|
||||
|
||||
Reference in New Issue
Block a user