nix-conf/modules/kodi/default.nix

25 lines
492 B
Nix
Raw Normal View History

2023-12-31 23:40:52 +01:00
{ 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;
2023-12-31 23:42:04 +01:00
desktopManager.kodi.enable = true;
2023-12-31 23:40:52 +01:00
displayManager = {
autoLogin = {
enable = true;
user = "jopejoe1";
};
2023-12-31 23:43:17 +01:00
lightdm = {
2023-12-31 23:40:52 +01:00
enable = true;
autoLogin.timeout = 3;
};
};
};
};
}