22 lines
450 B
Nix
22 lines
450 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
systemd.services.yate = {
|
|
enable = true;
|
|
description = "Yate telehony engine";
|
|
unitConfig = {
|
|
Type = "simple";
|
|
After = "network.target";
|
|
};
|
|
serviceConfig = {
|
|
ExecStart = "${pkgs.yate}/bin/yate -c /yate -e /yate/share -Do";
|
|
Type = "simple";
|
|
Restart = "always";
|
|
# ...
|
|
};
|
|
wantedBy = [ "default.target" ];
|
|
requiredBy = [ "network.target" ];
|
|
# ...
|
|
};
|
|
}
|