From 2fa3da6397b7ee52488d57655aaed86130f7c520 Mon Sep 17 00:00:00 2001 From: geemili Date: Fri, 12 Jan 2024 02:25:46 -0700 Subject: [PATCH] feat: add kodi service --- configuration.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configuration.nix b/configuration.nix index 2daa01f..5acc2fe 100644 --- a/configuration.nix +++ b/configuration.nix @@ -100,6 +100,21 @@ services.udisks2.enable = true; + users.extraUsers.kodi = { + isNormalUser = true; + extraGroups = [ "aria2" ]; + }; + services.cage = { + enable = true; + user = "kodi"; + program = let + kodi = pkgs.kodi-wayland.withPackages (kodiPkgs: [ + kodiPkgs.jellyfin + ]); + in + "${kodi}/bin/kodi-standalone"; + }; + # Multimedia group users.groups.multimedia = {}; users.users.lidarr.extraGroups = [ "aria2" ];