2024-06-08 22:18:23 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
systemd.services.yate = {
|
|
|
|
enable = true;
|
|
|
|
description = "Yate telehony engine";
|
|
|
|
unitConfig = {
|
|
|
|
Type = "simple";
|
2024-11-05 22:52:02 +01:00
|
|
|
After = "network.target";
|
2024-06-08 22:18:23 +02:00
|
|
|
};
|
|
|
|
serviceConfig = {
|
|
|
|
ExecStart = "${pkgs.yate}/bin/yate -c /yate -e /yate/share -Do";
|
2024-11-05 22:52:02 +01:00
|
|
|
Type = "simple";
|
|
|
|
Restart = "always";
|
2024-06-08 22:18:23 +02:00
|
|
|
# ...
|
|
|
|
};
|
|
|
|
wantedBy = [ "default.target" ];
|
2024-11-05 22:52:02 +01:00
|
|
|
requiredBy = [ "network.target" ];
|
2024-06-08 22:18:23 +02:00
|
|
|
# ...
|
|
|
|
};
|
|
|
|
}
|