18 lines
361 B
Nix
18 lines
361 B
Nix
{ config, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.vps.remnawave;
|
|
in
|
|
{
|
|
config = mkIf (cfg.enable && cfg.type == "node") {
|
|
sops.secrets = {
|
|
"remnanode/secret-key" = { };
|
|
};
|
|
|
|
sops.templates."remnanode.env".content = ''
|
|
NODE_PORT=${toString cfg.node.port}
|
|
SECRET_KEY=${config.sops.placeholder."remnanode/secret-key"}
|
|
'';
|
|
};
|
|
}
|