services.roon-server: fix binary path

This commit is contained in:
Bernardo Meurer 2020-07-23 11:38:13 -07:00
parent 2aa39298b6
commit 0aadd405a3
No known key found for this signature in database
GPG key ID: F4C0D53B8D14C246

View file

@ -45,14 +45,14 @@ in {
environment.ROON_DATAROOT = "/var/lib/${name}";
serviceConfig = {
ExecStart = "${pkgs.roon-server}/opt/start.sh";
ExecStart = "${pkgs.roon-server}/start.sh";
LimitNOFILE = 8192;
User = cfg.user;
Group = cfg.group;
StateDirectory = name;
};
};
networking.firewall = mkIf cfg.openFirewall {
allowedTCPPortRanges = [
{ from = 9100; to = 9200; }
@ -60,7 +60,7 @@ in {
allowedUDPPorts = [ 9003 ];
};
users.groups.${cfg.group} = {};
users.users.${cfg.user} =
if cfg.user == "roon-server" then {