From 813cc3c8d51f21b37b8eb2c5ed6abf0306a7ab0d Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 21 Dec 2024 21:21:25 +0100 Subject: ev: add kodi --- nixos/hosts/ev/default.nix | 1 + nixos/hosts/ev/kodi.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 nixos/hosts/ev/kodi.nix 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 @@ ./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; + }; + }; + }; +} -- cgit v1.2.3