diff options
-rw-r--r-- | nixos/hosts/ev/default.nix | 1 | ||||
-rw-r--r-- | nixos/hosts/ev/kodi.nix | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/nixos/hosts/ev/default.nix b/nixos/hosts/ev/default.nix index 6ea2f19..dbda5f3 100644 --- a/nixos/hosts/ev/default.nix +++ b/nixos/hosts/ev/default.nix @@ -12,6 +12,7 @@ <top/shared/tailscale.nix> <top/shared/basics-physical.nix> ./home-automation.nix + ./kodi.nix ]; home-automation.zigbee2mqttPort = 8080; 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; + }; + }; + }; +} |