mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
62 lines
1.1 KiB
Nix
Executable file
62 lines
1.1 KiB
Nix
Executable file
{ moduleFunctions }:
|
|
let
|
|
inherit (moduleFunctions.instancesFunctions)
|
|
domain0
|
|
sslPath
|
|
varPath
|
|
mntPath
|
|
secretPath
|
|
cachePath
|
|
;
|
|
label = "Firefly-III";
|
|
name = "firefly-iii";
|
|
subdomain = "finances";
|
|
domain = "${subdomain}.${domain0}";
|
|
secrets = "${secretPath}/${name}";
|
|
ssl = "${sslPath}/${domain}";
|
|
in
|
|
{
|
|
label = label;
|
|
name = name;
|
|
short = label;
|
|
email = {
|
|
address0 = "noreply@${domain0}";
|
|
};
|
|
domains = {
|
|
url0 = domain;
|
|
};
|
|
tags = [
|
|
"firefly-iii"
|
|
"finances"
|
|
"money"
|
|
];
|
|
subdomain = subdomain;
|
|
ports = {
|
|
port0 = 8080;
|
|
port1 = 8081;
|
|
};
|
|
interface = {
|
|
id = "vm-${name}";
|
|
mac = "02:00:00:00:54:04";
|
|
idUser = "vmuser-firefly";
|
|
macUser = "02:00:00:00:00:04";
|
|
ip = "192.168.50.114";
|
|
gate = "192.168.50.1";
|
|
ssh = 2204;
|
|
};
|
|
ssl = {
|
|
path = ssl;
|
|
cert = "${ssl}/fullchain.pem";
|
|
key = "${ssl}/key.pem";
|
|
};
|
|
varPaths = {
|
|
path0 = "${varPath}/${name}";
|
|
path1 = "${cachePath}/${name}";
|
|
};
|
|
mntPaths = {
|
|
path0 = "${mntPath}/${name}";
|
|
};
|
|
secretPaths = {
|
|
path0 = secrets;
|
|
};
|
|
}
|