Also update the path where we store the data used in the api
17 lines
396 B
Nix
17 lines
396 B
Nix
{ gakuen-cosplay, pkgs, ... }:
|
|
|
|
{
|
|
systemd.user.services.gakuen-cosplay-api = {
|
|
Install.WantedBy = [ "default.target" ];
|
|
|
|
Unit.Description = "Gakuen Cosplay API";
|
|
|
|
Service = {
|
|
ExecStart = "${gakuen-cosplay.packages.${pkgs.system}.backend}/bin/cosplayer_submission";
|
|
Restart = "on-failure";
|
|
Type = "simple";
|
|
WorkingDirectory = "/srv/gakuen_api";
|
|
};
|
|
};
|
|
}
|