mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 08:46:52 +01:00
40 lines
694 B
Nix
40 lines
694 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 {
|
|
environment.systemPackages = [ pkgs.kodi-wayland ];
|
|
services.xserver = {
|
|
enable = true;
|
|
desktopManager.kodi = {
|
|
enable = false;
|
|
package = pkgs.kodi-wayland;
|
|
};
|
|
displayManager = {
|
|
lightdm = {
|
|
enable = true;
|
|
autoLogin.timeout = 3;
|
|
};
|
|
};
|
|
};
|
|
services.displayManager = {
|
|
autoLogin = {
|
|
enable = true;
|
|
user = "jopejoe1";
|
|
};
|
|
sddm.enable = lib.mkForce false;
|
|
};
|
|
};
|
|
}
|