nix-conf/modules/kodi/default.nix
2024-01-01 00:27:08 +01:00

24 lines
493 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 = true;
autoLogin.timeout = 3;
};
};
};
};
}