nix-conf/modules/kodi/default.nix

30 lines
689 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 {
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 = {
2024-01-01 02:01:51 +01:00
defaultSession = "plasmawayland";
2023-12-31 23:40:52 +01:00
autoLogin = {
2024-01-01 01:34:23 +01:00
enable = true;
2023-12-31 23:40:52 +01:00
user = "jopejoe1";
};
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-01-01 01:42:21 +01:00
sddm.enable = lib.mkForce false;
2023-12-31 23:40:52 +01:00
};
};
};
}