Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions hosts/bastion/profiles/authelia/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,24 @@
redirect_uris = [ "https://termix.e10.camp/users/oidc/callback" ];
token_endpoint_auth_method = "client_secret_post";
}
{
client_id =
"pV6drSFL4uNhslIfnTxi~oDMhqTIVVWM~307jSrBE9CNPuuwqMRDwYnW0PG6tYYL5HqCpFJu";
client_name = "Actual Budget";
client_secret =
"$pbkdf2-sha512$310000$78au487f6p.HXge7fFeMcQ$FXpI9224tVfyMNkyLj3sqtP.gWUUN./gJemo3l0KcwjVseC0Wlqe50LsYtm6lBBzRXuBxAa/Jhw2q3EaIGMd3A";
public = false;
authorization_policy = "two_factor";
require_pkce = false;
pkce_challenge_method = "";
redirect_uris = [ "https://actual.e10.camp/openid/callback" ];
scopes = [ "openid" "profile" "groups" "email" ];
response_types = [ "code" ];
grant_types = [ "authorization_code" ];
access_token_signed_response_alg = "none";
userinfo_signed_response_alg = "none";
token_endpoint_auth_method = "client_secret_basic";
}
];
};

Expand Down
5 changes: 5 additions & 0 deletions hosts/bastion/profiles/caddy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@
inherit (hosts.controller.config.services.termix) port;
};

"actual.e10.camp" = {
host = hosts.matrix;
inherit (hosts.matrix.config.services.actual.settings) port;
};

"jellyfin.e10.video" = {
host = hosts.htpc;
port = 8096;
Expand Down
1 change: 1 addition & 0 deletions hosts/matrix/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
profiles.media-management.immich.default
profiles.networking.printing
profiles.power.tripp-lite-smart1500lcd
profiles.services.actual.default
profiles.services.attic-watch-store.default
profiles.services.bentopdf
profiles.services.changedetection-io
Expand Down
25 changes: 25 additions & 0 deletions modules/profiles/services/actual/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ config, ... }: {
sops.secrets = {
actual_oauth2_client_secret = {
sopsFile = ./secrets.json;
mode = "0777";
};
};

services.actual = {
enable = true;
openFirewall = true;
settings = {
loginMethod = "openid";
openId = {
discoveryURL = "https://auth.e10.camp";
client_id =
"pV6drSFL4uNhslIfnTxi~oDMhqTIVVWM~307jSrBE9CNPuuwqMRDwYnW0PG6tYYL5HqCpFJu";
client_secret._secret =
config.sops.secrets.actual_oauth2_client_secret.path;
server_hostname = "https://actual.e10.camp";
authMethod = "oauth2";
};
};
};
}
43 changes: 43 additions & 0 deletions modules/profiles/services/actual/secrets.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions modules/profiles/services/glance/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
cache = "1m";
title = "Services";
sites = let
mkSite = { title, url, check-url ? null, icon
, basicAuth ? false }: {
mkSite =
{ title, url, check-url ? null, icon, basicAuth ? false }: {
inherit title url check-url icon;
basic-auth = lib.mkIf basicAuth {
username = "\${AUTHELIA_BASIC_AUTH_USERNAME}";
Expand Down
Loading