This commit is contained in:
aloslider committed 2026-10-01 13:59:54 +03:00
1 parent 13e407847f
commit 374428658a
80 files changed
+2517 -1058

No files matched your search

@@ -0,0 +1,26 @@
{ config, lib, ... }:
with lib;
let
rootCfg = config.selfhosted.homarr;
poCfg = config.selfhosted.pocket-id;
oidpDomain = "https://${poCfg.subdomain}.${config.sops.placeholder."domains/serv"}";
in
{
config = mkIf rootCfg.enable {
sops.templates."homarr.env" = {
content = ''
SECRET_ENCRYPTION_KEY=${config.sops.placeholder."homarr/enc_key"}
NEXTAUTH_SECRET=${config.sops.placeholder."homarr/nextauth_secret"}
AUTH_PROVIDERS=oidc
AUTH_OIDC_CLIENT_ID=${config.sops.placeholder."homarr/client_id"}
AUTH_OIDC_CLIENT_SECRET=${config.sops.placeholder."homarr/client_secret"}
AUTH_OIDC_ISSUER=${oidpDomain}
AUTH_OIDC_CLIENT_NAME="Pocket ID"
AUTH_OIDC_SCOPE_OVERWRITE=openid email profile groups
AUTH_OIDC_GROUPS_ATTRIBUTE=groups
AUTH_LOGOUT_REDIRECT_URL=${oidpDomain}
AUTH_OIDC_AUTO_LOGIN=true
'';
};
};
}