kodi use cage

This commit is contained in:
Johannes Jöns 2023-08-14 18:54:45 +02:00
parent 596bfa5f36
commit b51baf21bd

View file

@ -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 ];