1
Fork 0

Set up tmpfiles for actual

This commit is contained in:
prescientmoon 2024-02-24 02:15:56 +01:00
parent 024331fd1b
commit 9cc1c2f644
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -2,18 +2,23 @@
let
port = 8408;
host = "actual.moonythm.dev";
dataDir = "/persist/state/var/lib/actual";
in
{
imports = [ ../../common/optional/services/nginx.nix ];
services.nginx.virtualHosts.${host} = config.satellite.proxy port { };
# Ensure persistent directory exists
systemd.tmpfiles.rules = [ "d ${dataDir}" ];
# {{{ General config
virtualisation.oci-containers.containers.actual = {
image = "actualbudget/actual-server:latest";
autoStart = true;
ports = [ "${toString port}:5006" ]; # server:docker
volumes = [ "/persist/state/var/lib/actual:/data" ]; # server:docker
volumes = [ "${dataDir}:/data" ]; # server:docker
environment = { };
};