Add support for kde plasma desktop

This commit is contained in:
Sravan Balaji
2024-03-27 20:39:35 -04:00
parent a59fa6ec1e
commit 11f3c0ca90
2 changed files with 16 additions and 1 deletions

View File

@@ -35,7 +35,7 @@
email = "balajsra@umich.edu"; # Email (used for certain configurations) email = "balajsra@umich.edu"; # Email (used for certain configurations)
dotfilesDir = "~/.dotfiles"; # Absolute path of the local repo dotfilesDir = "~/.dotfiles"; # Absolute path of the local repo
theme = "dracula"; # Selected theme from themes directory theme = "dracula"; # Selected theme from themes directory
desktop = "dwm"; # Selected window manager or desktop environment desktop = "kde"; # Selected window manager or desktop environment
desktopType = "x11"; # x11 or wayland desktopType = "x11"; # x11 or wayland
browser = "vivaldi"; # Default browser browser = "vivaldi"; # Default browser
term = "kitty"; # Default terminal command term = "kitty"; # Default terminal command

15
system/gui/kde.nix Normal file
View File

@@ -0,0 +1,15 @@
{ config, lib, pkgs, userSettings, ... }:
{
imports = [
./default.nix
(if userSettings.desktopType == "x11" then ./x11.nix else "")
];
services.xserver.displayManager = {
sddm.enable = true;
sddm.wayland.enable = (if userSettings.desktopType == "x11" then false else true);
defaultSession = (if userSettings.desktopType == "x11" then "plasmax11" else "plasma");
};
services.desktopManager.plasma6.enable = true;
}