From b51baf21bd1fd92f6ba0498c7d11336cb5ab8d50 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 14 Aug 2023 18:54:45 +0200 Subject: [PATCH] kodi use cage --- modules/kodi/default.nix | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/modules/kodi/default.nix b/modules/kodi/default.nix index 970ae76..3f573cd 100644 --- a/modules/kodi/default.nix +++ b/modules/kodi/default.nix @@ -1,25 +1,9 @@ { pkgs, ... }: { - services = { - xserver = { - enable = true; - - libinput.enable = true; - desktopManager.kodi = { - enable = true; - package = pkgs.kodi-wayland.withPackages (p: with p; [ trakt netflix youtube vfs-sftp ]); - }; - - displayManager.lightdm.enable = true; - displayManager.lightdm.autoLogin.timeout = 3; - - displayManager.autoLogin = { - enable = true; - user = "kodi"; - }; - }; - }; + services.cage.user = "kodi"; + services.cage.program = "${pkgs.kodi-wayland.withPackages (p: with p; [ trakt netflix youtube vfs-sftp ])}/bin/kodi-standalone"; + services.cage.enable = true; networking.firewall = { allowedTCPPorts = [ 8080 ];