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,14 +1,15 @@
|
||||
{ config, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
rootCfg = config.selfhosted.mirotalk;
|
||||
cfg = rootCfg.server;
|
||||
rootCfg = config.selfhosted;
|
||||
moduleCfg = rootCfg.mirotalk;
|
||||
cfg = moduleCfg.server;
|
||||
domain = "${config.sops.placeholder."domains/serv"}";
|
||||
pocketIdSubdomain = config.selfhosted.pocket-id.subdomain;
|
||||
pocketIdSubdomain = rootCfg.pocket-id.subdomain;
|
||||
publicUrl = "https://${cfg.subdomain}.${domain}";
|
||||
in
|
||||
{
|
||||
config = mkIf rootCfg.enable {
|
||||
config = mkIf moduleCfg.enable {
|
||||
sops.templates."mirotalk.env".content = ''
|
||||
NODE_ENV=production
|
||||
TZ=${config.time.timeZone}
|
||||
|
||||
Reference in new issue
Block a user