1
Fork 0

Set up actual on lapetus

This commit is contained in:
prescientmoon 2024-02-24 01:55:05 +01:00
parent eb9d1d2814
commit 024331fd1b
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
3 changed files with 24 additions and 0 deletions

View file

@ -10,6 +10,7 @@
./services/intray.nix ./services/intray.nix
./services/smos.nix ./services/smos.nix
./services/vaultwarden.nix ./services/vaultwarden.nix
./services/actual.nix
./services/zfs.nix ./services/zfs.nix
./filesystems ./filesystems
./hardware ./hardware

View file

@ -0,0 +1,21 @@
{ config, ... }:
let
port = 8408;
host = "actual.moonythm.dev";
in
{
imports = [ ../../common/optional/services/nginx.nix ];
services.nginx.virtualHosts.${host} = config.satellite.proxy port { };
# {{{ 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
environment = { };
};
# }}}
}

View file

@ -4,6 +4,8 @@ let
host = "warden.moonythm.dev"; host = "warden.moonythm.dev";
in in
{ {
imports = [ ../../common/optional/services/nginx.nix ];
services.nginx.virtualHosts.${host} = services.nginx.virtualHosts.${host} =
config.satellite.proxy port { proxyWebsockets = true; }; config.satellite.proxy port { proxyWebsockets = true; };