2022-03-08 01:42:46 +00:00
|
|
|
{pkgs, ...}: let
|
2021-06-05 15:01:12 +00:00
|
|
|
serverPath = "/var/cache/gc-links/kassandra-server";
|
2022-03-08 01:42:46 +00:00
|
|
|
in {
|
2021-01-11 05:44:33 +00:00
|
|
|
systemd.services.kassandra = {
|
2022-03-08 01:42:46 +00:00
|
|
|
wantedBy = ["multi-user.target"];
|
2021-01-11 05:44:33 +00:00
|
|
|
description = "Kassandra Server";
|
2022-03-08 01:42:46 +00:00
|
|
|
path = [pkgs.coreutils pkgs.taskwarrior];
|
2021-06-05 15:01:12 +00:00
|
|
|
serviceConfig = {
|
|
|
|
WorkingDirectory = serverPath;
|
|
|
|
ExecStart = "${serverPath}/backend -b '::1' ";
|
|
|
|
Restart = "always";
|
|
|
|
User = "maralorn";
|
|
|
|
};
|
2021-01-11 05:44:33 +00:00
|
|
|
};
|
|
|
|
}
|