enable yate service for autostart #3
3 changed files with 25 additions and 0 deletions
|
@ -5,5 +5,6 @@
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
./yate.nix
|
./yate.nix
|
||||||
|
./service.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
21
config/hosts/yate/service.nix
Normal file
21
config/hosts/yate/service.nix
Normal 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" ];
|
||||||
|
# ...
|
||||||
|
};
|
||||||
|
}
|
|
@ -3,6 +3,9 @@
|
||||||
{
|
{
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.yate
|
pkgs.yate
|
||||||
|
pkgs.git
|
||||||
|
pkgs.tcpdump
|
||||||
|
pkgs.tmux
|
||||||
];
|
];
|
||||||
|
|
||||||
# Just disable it for now.
|
# Just disable it for now.
|
||||||
|
|
Loading…
Reference in a new issue