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

16 lines
460 B
Nix
Raw Permalink Normal View History

2024-02-24 01:55:05 +01:00
{ config, ... }:
2024-06-13 15:47:36 +02:00
let dataDir = "/persist/state/var/lib/actual";
2024-02-24 01:55:05 +01:00
in
{
2024-06-13 15:47:36 +02:00
satellite.nginx.at.actual.port = config.satellite.ports.actual;
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;
2024-06-13 15:47:36 +02:00
ports = [ "${toString config.satellite.nginx.at.actual.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
};
}