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

24 lines
582 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
{
2024-06-11 11:37:14 +02:00
imports = [
../../common/optional/services/nginx.nix
../../common/optional/oci.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
};
}