nix-conf/nixos-modules/kodi/default.nix

41 lines
694 B
Nix
Raw Normal View History

2024-07-10 23:02:54 +02:00
{
config,
lib,
pkgs,
self,
...
}:
2023-12-31 23:40:52 +01:00
2024-07-10 23:02:54 +02:00
let
cfg = config.jopejoe1.kodi;
in
{
options.jopejoe1.kodi = {
enable = lib.mkEnableOption "Enable Kodi";
};
2023-12-31 23:40:52 +01:00
config = lib.mkIf cfg.enable {
2024-01-01 02:01:51 +01:00
environment.systemPackages = [ pkgs.kodi-wayland ];
2023-12-31 23:40:52 +01:00
services.xserver = {
enable = true;
2024-01-01 01:07:41 +01:00
desktopManager.kodi = {
2024-01-01 02:00:07 +01:00
enable = false;
2024-01-01 01:07:41 +01:00
package = pkgs.kodi-wayland;
};
2023-12-31 23:40:52 +01:00
displayManager = {
2023-12-31 23:43:17 +01:00
lightdm = {
2024-01-01 01:42:21 +01:00
enable = true;
2023-12-31 23:40:52 +01:00
autoLogin.timeout = 3;
};
};
};
2024-07-12 21:38:33 +02:00
services.displayManager = {
autoLogin = {
enable = true;
user = "jopejoe1";
};
sddm.enable = lib.mkForce false;
};
2023-12-31 23:40:52 +01:00
};
}