34 lines
697 B
Nix
34 lines
697 B
Nix
|
{ pkgs, username, ... }:
|
||
|
{
|
||
|
# nixpkgs.config.kodi.enableAdvancedLauncher = true;
|
||
|
services.xserver = {
|
||
|
enable = true;
|
||
|
desktopManager.kodi = {
|
||
|
enable = true;
|
||
|
package = pkgs.kodi.withPackages (
|
||
|
kp: with kp; [
|
||
|
jellyfin
|
||
|
youtube
|
||
|
netflix
|
||
|
]
|
||
|
);
|
||
|
};
|
||
|
displayManager = {
|
||
|
lightdm.greeter.enable = false;
|
||
|
autoLogin = {
|
||
|
enable = true;
|
||
|
user = username;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
networking.firewall = {
|
||
|
allowedTCPPorts = [ 8080 ];
|
||
|
allowedUDPPorts = [ 8080 ];
|
||
|
};
|
||
|
home-manager.users.${username} = {
|
||
|
home.stateVersion = null;
|
||
|
};
|
||
|
system.stateVersion = null;
|
||
|
users.mutableUsers = false;
|
||
|
}
|