nix-conf/modules/nixos/display-manager/default.nix
2024-04-10 23:29:07 +05:30

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;
};
}