add yate service for autostart

This commit is contained in:
echtnurich 2024-06-08 22:18:23 +02:00
parent 579b63fe89
commit 2037a1b647
Signed by: echtnurich
SSH key fingerprint: SHA256:1eIkxME0VPeXC2WMl9Haus+q0SLFymSAWU7f6Z+A8Aw
3 changed files with 25 additions and 0 deletions

View file

@ -5,5 +5,6 @@
./configuration.nix
./networking.nix
./yate.nix
./service.nix
];
}

View file

@ -0,0 +1,21 @@
{ 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" ];
# ...
};
}

View file

@ -3,6 +3,9 @@
{
environment.systemPackages = [
pkgs.yate
pkgs.git
pkgs.tcpdump
pkgs.tmux
];
# Just disable it for now.