mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-08 00:16:34 +01:00
30 lines
510 B
Nix
30 lines
510 B
Nix
|
{ 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.autoLogin = {
|
||
|
enable = true;
|
||
|
user = "kodi";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
networking.firewall = {
|
||
|
allowedTCPPorts = [ 8080 ];
|
||
|
allowedUDPPorts = [ 8080 ];
|
||
|
};
|
||
|
|
||
|
users.extraUsers.kodi.isNormalUser = true;
|
||
|
}
|
||
|
|
||
|
|