This commit is contained in:
TheWanderingCrow 2025-04-24 13:50:20 -04:00
parent d23c73755a
commit 87486c5637
4 changed files with 48 additions and 27 deletions

View file

@ -1,36 +1,41 @@
{...}: let
{
lib,
config,
...
}: let
volumePath = "/overseer/services";
in {
systemd.tmpfiles.rules = [
"d ${volumePath}/actualbudget"
];
in
lib.mkIf config.user.overseer.enable {
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";
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"budget.wanderingcrow.net" = {
forceSSL = true;
useACMEHost = "budget.wanderingcrow.net";
locations = {
"/" = {
proxyPass = "http://10.88.0.12";
};
};
};
};
};
};
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";
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";
};
};
};
};
};
}
}

View file

@ -11,5 +11,6 @@
./trilium.nix
./grocy.nix
./actualbudget.nix
./glances.nix
];
}

View file

@ -0,0 +1,10 @@
{
config,
lib,
...
}:
lib.mkIf config.user.overseer.enable {
servicess.glances = {
enable = true;
};
}

View file

@ -85,6 +85,11 @@ lib.mkIf config.user.overseer.enable {
longitude = "{{HOMEPAGE_VAR_LONG}}";
};
}
{
glances = {
url = "localhost:61208";
};
}
];
bookmarks = [
{