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