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

21 lines
438 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;
};
};
}