Small modules config restructure
Changed variables names in every module
This commit is contained in:
1 parent
c1d2e52bf8
commit
c92b90e406
83 files changed
+616
-523
No files matched your search
@@ -1,18 +1,19 @@
|
||||
{ config, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.selfhosted.transmute;
|
||||
rootCfg = config.selfhosted;
|
||||
moduleCfg = rootCfg.transmute;
|
||||
domain = "${config.sops.placeholder."domains/serv"}";
|
||||
pocketIdSubdomain = config.selfhosted.pocket-id.subdomain;
|
||||
pocketIdSubdomain = rootCfg.pocket-id.subdomain;
|
||||
in
|
||||
{
|
||||
config = mkIf cfg.enable {
|
||||
config = mkIf moduleCfg.enable {
|
||||
sops.secrets = {
|
||||
"transmute/client_secret" = { };
|
||||
};
|
||||
|
||||
sops.templates."transmute.env".content = ''
|
||||
APP_URL=https://${cfg.subdomain}.${domain}
|
||||
APP_URL=https://${moduleCfg.subdomain}.${domain}
|
||||
OIDC_AUTO_LAUNCH=false
|
||||
OIDC_ISSUER_URL=https://${pocketIdSubdomain}.${domain}
|
||||
OIDC_CLIENT_ID=transmute
|
||||
|
||||
Reference in new issue
Block a user