orm: serve actual

This commit is contained in:
Katherina Walshe-Grey 2024-09-26 12:16:33 +01:00
parent 59bbcc165e
commit 8b04d9039e
5 changed files with 86 additions and 6 deletions

31
services/actual.nix Normal file
View file

@ -0,0 +1,31 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.qenya.services.actual;
in
{
options.qenya.services.actual = {
enable = mkEnableOption "Actual";
domain = mkOption {
type = types.str;
};
};
config = mkIf cfg.enable {
services.nginx = {
enable = true;
virtualHosts = {
${cfg.domain} = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://127.0.0.1:5006/";
};
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.actual.enable = true;
};
}

View file

@ -1,5 +1,6 @@
{
imports = [
./actual.nix
./forgejo.nix
./pipewire-low-latency.nix
];