1 { config, lib, pkgs, ... }:
6 cfg = config.services.xserver.desktopManager.kodi;
11 services.xserver.desktopManager.kodi = {
15 description = lib.mdDoc "Enable the kodi multimedia center.";
21 defaultText = literalExpression "pkgs.kodi";
22 example = literalExpression "pkgs.kodi.withPackages (p: with p; [ jellyfin pvr-iptvsimple vfs-sftp ])";
23 description = lib.mdDoc ''
24 Package that should be used for Kodi.
30 config = mkIf cfg.enable {
31 services.xserver.desktopManager.session = [{
34 LIRC_SOCKET_PATH=/run/lirc/lircd ${cfg.package}/bin/kodi --standalone &
39 environment.systemPackages = [ cfg.package ];