Set up tmpfiles for actual
This commit is contained in:
parent
024331fd1b
commit
9cc1c2f644
|
@ -2,18 +2,23 @@
|
||||||
let
|
let
|
||||||
port = 8408;
|
port = 8408;
|
||||||
host = "actual.moonythm.dev";
|
host = "actual.moonythm.dev";
|
||||||
|
dataDir = "/persist/state/var/lib/actual";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ ../../common/optional/services/nginx.nix ];
|
imports = [ ../../common/optional/services/nginx.nix ];
|
||||||
|
|
||||||
services.nginx.virtualHosts.${host} = config.satellite.proxy port { };
|
services.nginx.virtualHosts.${host} = config.satellite.proxy port { };
|
||||||
|
|
||||||
|
# Ensure persistent directory exists
|
||||||
|
systemd.tmpfiles.rules = [ "d ${dataDir}" ];
|
||||||
|
|
||||||
# {{{ General config
|
# {{{ General config
|
||||||
virtualisation.oci-containers.containers.actual = {
|
virtualisation.oci-containers.containers.actual = {
|
||||||
image = "actualbudget/actual-server:latest";
|
image = "actualbudget/actual-server:latest";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
ports = [ "${toString port}:5006" ]; # server:docker
|
ports = [ "${toString port}:5006" ]; # server:docker
|
||||||
volumes = [ "/persist/state/var/lib/actual:/data" ]; # server:docker
|
volumes = [ "${dataDir}:/data" ]; # server:docker
|
||||||
|
|
||||||
environment = { };
|
environment = { };
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue