mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-08 04:38:06 +01:00
Moved DE config to the generic folder
This commit is contained in:
19
modules/nix-config/de.nix
Normal file
19
modules/nix-config/de.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ pkgs, lib, currentSystemDe, ... }:
|
||||
{
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Display managers
|
||||
services.displayManager.sddm = lib.mkIf (currentSystemDe == "plasma") {
|
||||
enable = true;
|
||||
wayland.enable = true;
|
||||
};
|
||||
services.xserver.displayManager.gdm.enable = lib.mkIf (currentSystemDe == "gnome") true;
|
||||
|
||||
# Desktop environments
|
||||
services.desktopManager.plasma6.enable = lib.mkIf (currentSystemDe == "plasma") true;
|
||||
environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
||||
elisa
|
||||
konsole
|
||||
];
|
||||
services.xserver.desktopManager.gnome.enable = lib.mkIf (currentSystemDe == "gnome") true;
|
||||
}
|
||||
Reference in New Issue
Block a user