[pi4] Initial Actual Budget service

This commit is contained in:
2025-06-23 18:07:09 +00:00
parent 70b5d5fd4d
commit 5704ebe712
2 changed files with 25 additions and 0 deletions

24
hosts/pi4/actual.nix Normal file
View File

@ -0,0 +1,24 @@
{ config, common, ... }:
let
cfg = config.services.actual.settings;
domain = "beta.budget.${common.domain}";
in
{
services = {
actual = {
enable = true;
settings = {
port = 8084;
loginMethod = "password";
};
};
nginx.virtualHosts.${domain} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:${toString cfg.port}";
proxyWebsockets = true;
};
};
};
}

View File

@ -3,6 +3,7 @@
{ {
imports = with lib.custom; [ imports = with lib.custom; [
(relativeToBase "modules") (relativeToBase "modules")
./actual.nix
./boot.nix ./boot.nix
./caddy.nix ./caddy.nix
./forgejo.nix ./forgejo.nix