17 lines
312 B
Nix
17 lines
312 B
Nix
{ config, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.vps.services.tg-ws-proxy;
|
|
in
|
|
{
|
|
config = mkIf cfg.enable {
|
|
sops.secrets = {
|
|
"tg-ws-proxy/secret" = { };
|
|
};
|
|
|
|
sops.templates."tg-ws-proxy.env".content = ''
|
|
TG_WS_PROXY_SECRET=${config.sops.placeholder."tg-ws-proxy/secret"}
|
|
'';
|
|
};
|
|
}
|