1 { config, lib, pkgs, ... }:
6 cfg = config.services.xserver.desktopManager.kodi;
11 services.xserver.desktopManager.kodi = {
15 description = "Enable the kodi multimedia center.";
18 package = mkPackageOption pkgs "kodi" {
19 example = "kodi.withPackages (p: with p; [ jellyfin pvr-iptvsimple vfs-sftp ])";
24 config = mkIf cfg.enable {
25 services.xserver.desktopManager.session = [{
28 LIRC_SOCKET_PATH=/run/lirc/lircd ${cfg.package}/bin/kodi --standalone &
33 environment.systemPackages = [ cfg.package ];