nixos-config/configs/porani/kodi.nix

39 lines
765 B
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ config, lib, pkgs, ... }: {
2019-10-24 02:20:38 +02:00
services.xserver = {
enable = true;
2019-12-14 06:15:37 +01:00
autorun = true;
2019-10-24 02:20:38 +02:00
desktopManager = {
kodi.enable = true;
default = "kodi";
xterm.enable = false;
};
2019-12-20 05:54:26 +01:00
displayManager = {
2019-12-18 04:36:40 +01:00
sddm = {
enable = true;
autoLogin = {
enable = true;
relogin = true;
user = config.users.users.kodi.name;
};
};
2019-10-24 02:20:38 +02:00
};
};
users = {
# mutableUsers = true;
2019-12-20 05:54:26 +01:00
users.kodi = {
2019-10-24 02:20:38 +02:00
isNormalUser = true;
name = "kodi";
uid = 1338;
initialPassword = lib.fileContents <secrets/kodi/password>;
};
};
2019-12-14 11:19:12 +01:00
# allow everybody in the net to access the wifi
networking.firewall = {
allowedTCPPorts = [ 8080 ];
allowedUDPPorts = [ 8080 ];
};
2019-10-24 02:20:38 +02:00
}