nixos-config/configs/porani/kodi.nix
Ingolf Wagner 54bab918d7
init
2019-10-24 02:24:33 +02:00

30 lines
568 B
Nix

{ config, lib, pkgs, ... }:
{
services.xserver = {
enable = true;
autorun = false;
desktopManager = {
kodi.enable = true;
default = "kodi";
xterm.enable = false;
};
displayManager.lightdm = {
enable = true;
autoLogin.enable = true;
autoLogin.user = config.users.users.kodi.name;
};
};
users = {
# mutableUsers = true;
users.kodi= {
isNormalUser = true;
name = "kodi";
uid = 1338;
initialPassword = lib.fileContents <secrets/kodi/password>;
};
};
}