Fixed binary names

This commit is contained in:
Sebastian 2024-11-05 21:37:03 +01:00
parent 68bea2c7e8
commit 2c53327c28

View file

@ -9,7 +9,7 @@ in
{ {
options.services.mmdvm_host = { options.services.mmdvm_host = {
enable = mkEnableOption "mmdvm host service"; enable = mkEnableOption "MMDVMHost service";
package = mkOption { package = mkOption {
default = mmdvm_host.x86_64-linux.default; default = mmdvm_host.x86_64-linux.default;
type = types.package; type = types.package;
@ -32,17 +32,17 @@ in
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
wants = [ "network.target" ]; wants = [ "network.target" ];
after = [ "network.target" ]; after = [ "network.target" ];
description = "mmdvm_host service"; description = "MMDVMHost service";
serviceConfig = { serviceConfig = {
Type = "exec"; Type = "exec";
User = cfg.user; User = cfg.user;
Restart = "always"; Restart = "always";
RestartSec = "3s"; RestartSec = "3s";
StartLimitIntervalSec = "0"; StartLimitIntervalSec = "0";
RuntimeDirectory = "mmdvm_host"; RuntimeDirectory = "MMDVMHost";
}; };
script = '' script = ''
exec ${cfg.package}/bin/mmdvm_host exec ${cfg.package}/bin/MMDVMHost
''; '';
}; };
}; };