mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-08 12:54:38 -05:00
44 lines
728 B
Nix
Executable file
44 lines
728 B
Nix
Executable file
{ moduleFunctions }:
|
|
let
|
|
inherit (moduleFunctions.instancesFunctions)
|
|
domain0
|
|
servicePath
|
|
sslPath
|
|
sopsPath
|
|
;
|
|
|
|
label = "Nextcloud";
|
|
name = "nextcloud";
|
|
domain = "${name}.${domain0}";
|
|
in
|
|
{
|
|
label = label;
|
|
name = name;
|
|
short = "Next";
|
|
email = {
|
|
address0 = "noreply@${name}.${domain0}";
|
|
};
|
|
sops = {
|
|
path0 = "${sopsPath}/${name}";
|
|
};
|
|
domains = {
|
|
url0 = domain;
|
|
};
|
|
subdomain = name;
|
|
tags = [
|
|
name
|
|
"next"
|
|
"cloud"
|
|
"calendar"
|
|
];
|
|
paths = {
|
|
path0 = "${servicePath}/${label}";
|
|
};
|
|
ports = {
|
|
port0 = 8354; # Nextcloud
|
|
};
|
|
ssl = {
|
|
cert = "${sslPath}/${name}.${domain0}/fullchain.pem";
|
|
key = "${sslPath}/${name}.${domain0}/key.pem";
|
|
};
|
|
}
|