diff options
Diffstat (limited to 'nixos/hosts/ev/kodi.nix')
-rw-r--r-- | nixos/hosts/ev/kodi.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixos/hosts/ev/kodi.nix b/nixos/hosts/ev/kodi.nix new file mode 100644 index 0000000..2aea216 --- /dev/null +++ b/nixos/hosts/ev/kodi.nix @@ -0,0 +1,27 @@ +{ 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; + }; + }; + }; +} |