diff options
author | Martin Fischer <martin@push-f.com> | 2024-12-21 21:21:25 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2024-12-29 08:52:42 +0100 |
commit | 813cc3c8d51f21b37b8eb2c5ed6abf0306a7ab0d (patch) | |
tree | 16d96c2289a8e18b68070c85aff82d42ffd53665 /nixos/hosts/ev/kodi.nix | |
parent | 0418718b0312832e950933ab7fbdda7e96f3e5f3 (diff) |
ev: add kodi
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; + }; + }; + }; +} |