Set up tmpfiles for actual
This commit is contained in:
parent
024331fd1b
commit
9cc1c2f644
|
@ -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 = { };
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue