add display-manager

This commit is contained in:
Aditya 2024-04-10 23:25:25 +05:30
parent 20bcb45771
commit 45c74062c9
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
3 changed files with 28 additions and 12 deletions

View file

@ -34,18 +34,6 @@
# Select internationalisation properties.
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the KDE Plasma Desktop Environment.
services.xserver.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
# Enable GNOME desktop environment
services.xserver.displayManager.gdm.enable = false;
services.xserver.desktopManager.gnome.enable = false;
programs.xwayland.enable = true;
# Debug infod
services.nixseparatedebuginfod.enable = true;

View file

@ -2,6 +2,7 @@
imports = [
./bluetooth
./bootloader
./display-manager
./filesystem
./fonts
./hardware

View file

@ -0,0 +1,27 @@
{
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;
};
};
wayland.enable = true;
};
programs.xwayland.enable = true;
};
}