Commit cfd95b5
committed
fix: pass BLOUD_APPS_DIR to app service prestart hooks for SSO config
App prestart hooks run bloud-agent in a systemd context that doesn't
inherit the host-agent service environment. Without BLOUD_APPS_DIR set,
bloud-agent falls back to the relative default '../../apps' which doesn't
exist, causing writeSSOEnvVars to fail silently. This left miniflux (and
any other native-oidc app) missing OAUTH2_PROVIDER, OAUTH2_CLIENT_ID,
and other SSO env vars, so it fell back to local login.
- nixos/bloud.nix: add bloud.appsDir option (default: resolved ../apps path)
- nixos/lib/bloud-app.nix: set BLOUD_APPS_DIR on each app's systemd service
- cli/pve.go: fix cmdRebuildPVE init script permissions (sudo rm for
root-owned leftovers, chmod -R u+w after copying read-only nix store)1 parent bf51668 commit cfd95b5
3 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1352 | 1352 | | |
1353 | 1353 | | |
1354 | 1354 | | |
1355 | | - | |
| 1355 | + | |
1356 | 1356 | | |
| 1357 | + | |
1357 | 1358 | | |
1358 | 1359 | | |
1359 | 1360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
| |||
0 commit comments