mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-14 00:59:44 +00:00
31 lines
631 B
Nix
31 lines
631 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
options = {
|
|
display-manager.enable = lib.mkEnableOption "enable display-manager";
|
|
};
|
|
config = lib.mkIf config.display-manager.enable {
|
|
services = {
|
|
xserver = {
|
|
enable = true;
|
|
displayManager = {
|
|
sddm.enable = true;
|
|
gnome.enable = false;
|
|
};
|
|
desktopManager = {
|
|
plasma6.enable = true;
|
|
gnome.enable = false;
|
|
};
|
|
xkb = {
|
|
layout = "us";
|
|
variant = "";
|
|
};
|
|
};
|
|
wayland.enable = true;
|
|
};
|
|
xdg.portal.enable = true;
|
|
programs.xwayland.enable = true;
|
|
};
|
|
}
|