add openid to budget

This commit is contained in:
TheWanderingCrow 2025-11-03 08:50:10 -05:00
parent aad328dc84
commit d4ad65317e
2 changed files with 14 additions and 4 deletions

8
flake.lock generated
View file

@ -387,11 +387,11 @@
"nixpkgs": "nixpkgs_5"
},
"locked": {
"lastModified": 1762101890,
"narHash": "sha256-k7/cK8/6dA4V0qxXflpUgtsRg0gsdyUlPJlC5s3gsYA=",
"lastModified": 1762177792,
"narHash": "sha256-8m/oUyPw4RgctZXY/LVLBIRdQDVPoR3jK5mTGeA+7IY=",
"ref": "refs/heads/master",
"rev": "a394862e50d0a26e25a247457ad6d739af18a105",
"revCount": 145,
"rev": "d56e91ea1ec05faff82c5f9be18bdb33c5a4fc15",
"revCount": 146,
"type": "git",
"url": "ssh://git@github.com/TheWanderingCrow/nix-secrets"
},

View file

@ -21,10 +21,20 @@ in
"actualbudget/key" = {
sopsFile = "${sopsFolder}/services.yaml";
};
"actualbudget/client-id" = {
sopsFile = "${sopsFolder}/services.yaml";
};
"actualbudget/client-secret" = {
sopsFile = "${sopsFolder}/services.yaml";
};
};
templates."actualbudget-api-env".content = ''
ACTUAL_SERVER_PASSWORD="${config.sops.placeholder."actualbudget/pass"}"
API_KEY="${config.sops.placeholder."actualbudget/key"}"
ACTUAL_OPENID_DISCOVERY_URL="https://auth.wanderingcrow.net/.well-known/openid-configuration"
ACTUAL_OPENID_CLIENT_ID="${config.sops.placeholder."actualbudget/client-id"}"
ACTUAL_OPENID_CLIENT_SECRET="${config.sops.placeholder."actualbudget/client-secret"}"
ACTUAL_OPENID_SERVER_HOSTNAME="https://budget.wanderingcrow.net"
'';
};