1
Fork 0
satellite/hosts/nixos/lapetus/services/actual.nix

21 lines
542 B
Nix
Raw Normal View History

2024-02-24 01:55:05 +01:00
{ config, ... }:
let
port = 8408;
host = "actual.moonythm.dev";
2024-02-24 02:15:56 +01:00
dataDir = "/persist/state/var/lib/actual";
2024-02-24 01:55:05 +01:00
in
{
imports = [ ../../common/optional/services/nginx.nix ];
2024-02-24 02:15:56 +01:00
2024-02-24 01:55:05 +01:00
services.nginx.virtualHosts.${host} = config.satellite.proxy port { };
2024-02-24 02:15:56 +01:00
systemd.tmpfiles.rules = [ "d ${dataDir}" ];
2024-02-24 01:55:05 +01:00
virtualisation.oci-containers.containers.actual = {
image = "actualbudget/actual-server:latest";
autoStart = true;
ports = [ "${toString port}:5006" ]; # server:docker
2024-02-24 02:15:56 +01:00
volumes = [ "${dataDir}:/data" ]; # server:docker
2024-02-24 01:55:05 +01:00
};
}