btw i use nix
1{ config, lib, ... }:
2
3let
4 cfg = config.custom.gui;
5in
6{
7 options.custom.gui.kde = lib.mkEnableOption "kde";
8
9 config = lib.mkIf cfg.kde {
10 services.xserver = {
11 enable = true;
12 desktopManager.plasma5.enable = true;
13 };
14
15 home-manager.users.${config.custom.username}.home.file = {
16 ".xinitrc".text = ''
17 export XDG_SESSION_TYPE=x11
18 export GDK_BACKEND=x11
19 export DESKTOP_SESSION=plasma
20 exec startplasma-x11
21 '';
22 };
23 };
24}