Add transmute
This commit is contained in:
1 parent
65f278e02f
commit
73ec97cf3a
4 files changed
+121
No files matched your search
@@ -0,0 +1,26 @@
|
||||
{ config, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
rootCfg = config.selfhosted.converter;
|
||||
cfg = rootCfg.transmute;
|
||||
domain = "${config.sops.placeholder."domains/serv"}";
|
||||
pocketIdSubdomain = config.selfhosted.pocket-id.subdomain;
|
||||
in
|
||||
{
|
||||
config = mkIf rootCfg.enable {
|
||||
sops.secrets = {
|
||||
"transmute/client_secret" = { };
|
||||
};
|
||||
|
||||
sops.templates."transmute.env".content = ''
|
||||
APP_URL=https://${cfg.subdomain}.${domain}
|
||||
OIDC_AUTO_LAUNCH=false
|
||||
OIDC_ISSUER_URL=https://${pocketIdSubdomain}.${domain}
|
||||
OIDC_CLIENT_ID=transmute
|
||||
OIDC_CLIENT_SECRET=${config.sops.placeholder."transmute/client_secret"}
|
||||
OIDC_DISPLAY_NAME=PocketID
|
||||
OIDC_USERNAME_CLAIM=preferred_username
|
||||
OIDC_AUTO_CREATE_USERS=true
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user