nix-conf/modules/kodi/default.nix
2024-01-01 01:07:41 +01:00

26 lines
551 B
Nix

{ config, lib, pkgs, self, ... }:
let cfg = config.jopejoe1.kodi;
in {
options.jopejoe1.kodi = { enable = lib.mkEnableOption "Enable Kodi"; };
config = lib.mkIf cfg.enable {
services.xserver = {
enable = true;
desktopManager.kodi = {
enable = true;
package = pkgs.kodi-wayland;
};
displayManager = {
autoLogin = {
enable = false;
user = "jopejoe1";
};
lightdm = {
enable = false;
autoLogin.timeout = 3;
};
};
};
};
}