mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-09 05:14:41 -05:00
37 lines
669 B
Nix
Executable file
37 lines
669 B
Nix
Executable file
{ moduleFunctions }:
|
|
let
|
|
inherit (moduleFunctions.instancesFunctions)
|
|
domain0
|
|
servicePath
|
|
sslPath
|
|
sopsPath
|
|
;
|
|
|
|
label = "Vaultwarden";
|
|
name = "vaultwarden";
|
|
domain = "${name}.${domain0}";
|
|
in
|
|
{
|
|
label = label;
|
|
name = name;
|
|
email = {
|
|
address0 = "noreply@${name}.${domain0}";
|
|
};
|
|
sops = {
|
|
path0 = "${sopsPath}/${name}";
|
|
};
|
|
domains = {
|
|
url0 = domain;
|
|
};
|
|
subdomain = name;
|
|
paths = {
|
|
path0 = "${servicePath}/${label}/BackupDir";
|
|
};
|
|
ports = {
|
|
port0 = 8085; # Vaultwarden WebUI
|
|
};
|
|
ssl = {
|
|
cert = "${sslPath}/${name}.${domain0}/fullchain.pem";
|
|
key = "${sslPath}/${name}.${domain0}/key.pem";
|
|
};
|
|
}
|