nix-conf/modules/kodi/default.nix
2024-01-01 02:01:51 +01:00

29 lines
689 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 {
environment.systemPackages = [ pkgs.kodi-wayland ];
services.xserver = {
enable = true;
desktopManager.kodi = {
enable = false;
package = pkgs.kodi-wayland;
};
displayManager = {
defaultSession = "plasmawayland";
autoLogin = {
enable = true;
user = "jopejoe1";
};
lightdm = {
enable = true;
autoLogin.timeout = 3;
};
sddm.enable = lib.mkForce false;
};
};
};
}