Merge pull request #117977 from aanderse/nixos/kodi
nixos/kodi: add package option
This commit is contained in:
commit
c259908251
@ -14,6 +14,16 @@ in
|
|||||||
default = false;
|
default = false;
|
||||||
description = "Enable the kodi multimedia center.";
|
description = "Enable the kodi multimedia center.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.kodi;
|
||||||
|
defaultText = "pkgs.kodi";
|
||||||
|
example = "pkgs.kodi.withPackages (p: with p; [ jellyfin pvr-iptvsimple vfs-sftp ])";
|
||||||
|
description = ''
|
||||||
|
Package that should be used for Kodi.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -21,11 +31,11 @@ in
|
|||||||
services.xserver.desktopManager.session = [{
|
services.xserver.desktopManager.session = [{
|
||||||
name = "kodi";
|
name = "kodi";
|
||||||
start = ''
|
start = ''
|
||||||
LIRC_SOCKET_PATH=/run/lirc/lircd ${pkgs.kodi}/bin/kodi --standalone &
|
LIRC_SOCKET_PATH=/run/lirc/lircd ${cfg.package}/bin/kodi --standalone &
|
||||||
waitPID=$!
|
waitPID=$!
|
||||||
'';
|
'';
|
||||||
}];
|
}];
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.kodi ];
|
environment.systemPackages = [ cfg.package ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user