nixos-config/nixos/machines/pepe/kodi.nix

45 lines
889 B
Nix
Raw Normal View History

2020-04-10 11:36:58 +02:00
{ config, lib, pkgs, ... }: {
services.xserver = {
2021-07-10 13:41:02 +02:00
enable = false;
2020-04-10 11:36:58 +02:00
autorun = false;
2020-04-26 20:15:39 +02:00
videoDrivers = [ "intel" ];
#deviceSection = ''
# Option "DRI" "2"
# Option "TearFree" "true"
#'';
2020-04-10 11:36:58 +02:00
desktopManager = {
kodi.enable = true;
default = "kodi";
xterm.enable = false;
};
displayManager = {
sddm = {
enable = true;
autoLogin = {
enable = true;
relogin = true;
user = config.users.users.kodi.name;
};
};
};
};
users = {
# mutableUsers = true;
users.kodi = {
isNormalUser = true;
name = "kodi";
uid = 1338;
initialPassword = lib.fileContents <secrets/kodi/password>;
};
};
# allow everybody in the net to access the wifi
networking.firewall = {
allowedTCPPorts = [ 8080 ];
allowedUDPPorts = [ 8080 ];
};
2020-04-26 20:15:39 +02:00
2020-04-10 11:36:58 +02:00
}