mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-21 19:52:52 +00:00
add display-manager
This commit is contained in:
parent
20bcb45771
commit
45c74062c9
3 changed files with 28 additions and 12 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./bluetooth
|
||||
./bootloader
|
||||
./display-manager
|
||||
./filesystem
|
||||
./fonts
|
||||
./hardware
|
||||
|
|
27
modules/nixos/display-manager/default.nix
Normal file
27
modules/nixos/display-manager/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue