18 lines
422 B
Nix
18 lines
422 B
Nix
{ config, lib, ... }:
|
|
with lib;
|
|
let
|
|
moduleCfg = config.selfhosted.pocket-id;
|
|
in
|
|
{
|
|
config = mkIf moduleCfg.enable {
|
|
sops.templates."pocket-id.env".content = ''
|
|
APP_URL=https://${moduleCfg.subdomain}.${config.sops.placeholder."domains/serv"}
|
|
ENCRYPTION_KEY=${config.sops.placeholder."pocket_id/enc_key"}
|
|
TRUST_PROXY=true
|
|
ANALYTICS_DISABLED=true
|
|
PUID=1000
|
|
PGID=1000
|
|
'';
|
|
};
|
|
}
|