mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-06 11:56:33 +01:00
26 lines
550 B
Nix
26 lines
550 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 = true;
|
|
user = "jopejoe1";
|
|
};
|
|
lightdm = {
|
|
enable = false;
|
|
autoLogin.timeout = 3;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|