adds config for actual server
This commit is contained in:
parent
4734ecb5e1
commit
65fdfb5aca
2 changed files with 24 additions and 0 deletions
18
modules/actual-server/default.nix
Normal file
18
modules/actual-server/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue