Add more apps.

This commit is contained in:
Nolan Darilek 2024-12-30 10:10:13 -06:00
parent d58da536b1
commit f111879b6e
3 changed files with 26 additions and 14 deletions

20
hosts/hub/apps/actual.nix Normal file
View File

@ -0,0 +1,20 @@
{ config, ... }:
{
systemd.tmpfiles.rules = [
"d /var/lib/actual 0755 root root"
];
virtualisation.oci-containers.containers.actual = {
image = "actualbudget/actual-server:latest";
ports = [
"5006:5006"
];
volumes = [ "/var/lib/actual:/data" ];
};
services.caddy.virtualHosts."https://budget.tailc50184.ts.net".extraConfig = ''
bind tailscale/budget
reverse_proxy http://localhost:5006
'';
}

View File

@ -1,19 +1,10 @@
{ config, ... }:
{
systemd.tmpfiles.rules = [
"d /var/lib/searxng 0755 root root"
];
virtualisation.oci-containers.containers.searxng = {
image = "searxng/searxng:latest";
environment = {
BASE_URL = "https://searxng.tailc50184.ts.net";
services.searx = {
enable = true;
settings.server = {
port = 8080;
secret_key = "secret_key";
};
ports = [
"8080:8080"
];
volumes = [ "/var/lib/searxng:/etc/searxng" ];
};
services.caddy.virtualHosts."https://searxng.tailc50184.ts.net".extraConfig = ''

View File

@ -23,6 +23,7 @@
./apps/dev.nix
./apps/nextcloud.nix
./apps/searxng.nix
./apps/actual.nix
];
boot.loader.grub = {