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 | |
parent | 0418718b0312832e950933ab7fbdda7e96f3e5f3 (diff) |
ev: add kodi
-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; + }; + }; + }; +} |