nix-infra/config/hosts/yate/service.nix

22 lines
450 B
Nix
Raw Normal View History

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
# ...
};
}