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