mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 01:34:08 -05:00
41 lines
865 B
Nix
41 lines
865 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
volumePath = "/overseer/services";
|
|
in {
|
|
systemd.tmpfiles.rules = [
|
|
"d ${volumePath}/actualbudget"
|
|
];
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = {
|
|
"budget.wanderingcrow.net" = {
|
|
forceSSL = true;
|
|
useACMEHost = "budget.wanderingcrow.net";
|
|
locations = {
|
|
"/" = {
|
|
proxyPass = "http://10.88.0.12";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
virtualisation.oci-containers = {
|
|
backend = "podman";
|
|
containers = {
|
|
"actualbudget" = {
|
|
image = "actualbudget/actual-server:latest";
|
|
volumes = ["${volumePath}/actualbudget:/data"];
|
|
extraOptions = ["--ip=10.88.0.12"];
|
|
environment = {
|
|
ACTUAL_PORT = "80";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|