18 lines
402 B
Nix
18 lines
402 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";
|
|
serviceConfig = {
|
|
type = "simple";
|
|
ExecStart = "ACTUAL_PORT=9002 ${pkgs.actual-server}";
|
|
Restart = "on-failure";
|
|
RestartSec = 3;
|
|
};
|
|
};
|
|
}
|