nix-config/modules/actual-server/default.nix
2025-10-17 10:39:16 +02:00

21 lines
440 B
Nix

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