services.roon-server: fix binary path
This commit is contained in:
parent
2aa39298b6
commit
0aadd405a3
@ -45,14 +45,14 @@ in {
|
|||||||
environment.ROON_DATAROOT = "/var/lib/${name}";
|
environment.ROON_DATAROOT = "/var/lib/${name}";
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.roon-server}/opt/start.sh";
|
ExecStart = "${pkgs.roon-server}/start.sh";
|
||||||
LimitNOFILE = 8192;
|
LimitNOFILE = 8192;
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
StateDirectory = name;
|
StateDirectory = name;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall = mkIf cfg.openFirewall {
|
networking.firewall = mkIf cfg.openFirewall {
|
||||||
allowedTCPPortRanges = [
|
allowedTCPPortRanges = [
|
||||||
{ from = 9100; to = 9200; }
|
{ from = 9100; to = 9200; }
|
||||||
@ -60,7 +60,7 @@ in {
|
|||||||
allowedUDPPorts = [ 9003 ];
|
allowedUDPPorts = [ 9003 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
users.groups.${cfg.group} = {};
|
users.groups.${cfg.group} = {};
|
||||||
users.users.${cfg.user} =
|
users.users.${cfg.user} =
|
||||||
if cfg.user == "roon-server" then {
|
if cfg.user == "roon-server" then {
|
||||||
|
Loading…
Reference in New Issue
Block a user