feat: added firefly-iii

This commit is contained in:
Nick 2025-10-09 02:56:01 -05:00
parent 26930c0dcc
commit 0113cd05f9
3 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ moduleFunctions }:
let
inherit (moduleFunctions.instancesFunctions)
domain0
servicePath
sslPath
sopsPath
;
label = "Firefly";
name = "firefly";
domain = "${name}.${domain0}";
in
{
label = label;
name = name;
short = label;
sops = {
path0 = "${sopsPath}/${name}";
};
domains = {
url0 = domain;
};
tags = [
];
subdomain = name;
paths = {
path0 = "${servicePath}/${label}";
path1 = "${servicePath}/${label}/cache";
};
ports = {
port0 = 3000;
};
ssl = {
cert = "${sslPath}/${name}.${domain0}/fullchain.pem";
key = "${sslPath}/${name}.${domain0}/key.pem";
};
}

View file

@ -66,6 +66,7 @@ in
prompter
filesorter
actual
firefly
;
};
};

View file

@ -0,0 +1,23 @@
{ flake, ... }:
let
inherit (flake.config.services.instances) firefly;
service = firefly;
in
{
services = {
firefly-iii = {
enable = true;
dataDir = service.paths.path0;
DB_CONNECTION = "pgsql";
};
firefly-iii-data-importer = {
enable = true;
};
};
networking = {
firewall.allowedTCPPorts = [
8080
8081
];
};
}