adds config for actual server

This commit is contained in:
Dennis 2025-10-17 10:08:14 +02:00
parent 4734ecb5e1
commit 65fdfb5aca
2 changed files with 24 additions and 0 deletions

View file

@ -16,6 +16,7 @@
../../modules/uptime-kuma ../../modules/uptime-kuma
../../modules/homepage ../../modules/homepage
../../modules/docker ../../modules/docker
../../modules/actual-server
]; ];
# Secrets # Secrets
@ -79,6 +80,7 @@
description = "dennis"; description = "dennis";
initialPassword = "admin"; initialPassword = "admin";
isNormalUser = true; isNormalUser = true;
linger = true;
extraGroups = [ extraGroups = [
"wheel" "wheel"
"networkmanager" "networkmanager"
@ -111,6 +113,7 @@
neovim neovim
wget wget
docker-compose docker-compose
actual-server
]; ];
# Programs # Programs
@ -161,6 +164,9 @@
virtualHosts."home.dnsc.io".extraConfig = '' virtualHosts."home.dnsc.io".extraConfig = ''
reverse_proxy localhost:9001 reverse_proxy localhost:9001
''; '';
virtualHosts."finance.dnsc.io".extraConfig = ''
reverse_proxy localhost:9002
'';
}; };
# Environment variables # Environment variables

View file

@ -0,0 +1,18 @@
{
pkgs,
...
}:
{
systemd.user.services.actual-server = {
enable = true;
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
description = "user service for the actual budgeting server instance";
serviceConfig = {
type = "simple";
ExecStart = "ACTUAL_PORT=9002 ${pkgs.actual-server}";
Restart = "on-failure";
RestartSec = 3;
};
};
}