2023-08-14 16:47:59 +02:00
|
|
|
{ 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 ]);
|
|
|
|
};
|
|
|
|
|
2023-08-14 17:56:32 +02:00
|
|
|
displayManager.lightdm.enable = true;
|
|
|
|
displayManager.lightdm.autoLogin.timeout = 3;
|
|
|
|
|
2023-08-14 16:47:59 +02:00
|
|
|
displayManager.autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = "kodi";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [ 8080 ];
|
|
|
|
allowedUDPPorts = [ 8080 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
users.extraUsers.kodi.isNormalUser = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|