{ config, pkgs, ... }: let kodi-package = pkgs.kodi-wayland.withPackages (kodiPkgs: with kodiPkgs; [ joystick ]); in { config = { users.extraUsers.kodi.isNormalUser = true; services = { cage = { enable = true; user = "kodi"; program = "${kodi-package}/bin/kodi-standalone"; }; pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; }; }; }; }