diff --git a/hosts/pi4/actual.nix b/hosts/pi4/actual.nix new file mode 100644 index 0000000..9dda873 --- /dev/null +++ b/hosts/pi4/actual.nix @@ -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; + }; + }; + }; +} diff --git a/hosts/pi4/default.nix b/hosts/pi4/default.nix index 3ef13b6..8e28963 100644 --- a/hosts/pi4/default.nix +++ b/hosts/pi4/default.nix @@ -3,6 +3,7 @@ { imports = with lib.custom; [ (relativeToBase "modules") + ./actual.nix ./boot.nix ./caddy.nix ./forgejo.nix