Set up actual on lapetus
This commit is contained in:
parent
eb9d1d2814
commit
024331fd1b
|
@ -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
|
||||||
|
|
21
hosts/nixos/lapetus/services/actual.nix
Normal file
21
hosts/nixos/lapetus/services/actual.nix
Normal 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 = { };
|
||||||
|
};
|
||||||
|
# }}}
|
||||||
|
}
|
|
@ -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; };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue