home(plasma): remove plasma desktop

This commit is contained in:
514fpv 2024-01-28 16:38:17 +08:00
parent d83301cbd1
commit 75f1480908
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
2 changed files with 2 additions and 33 deletions

View file

@ -22,8 +22,8 @@
}; };
# unify qt theme # unify qt theme
qt.platformTheme = mkIf (!config.passthrough.plasma.enable) "gtk"; qt.platformTheme = mkDefault "gtk";
gtk.enable = mkDefault true; gtk.enable = mkDefault true;
qt.enable = mkDefault (!config.passthrough.plasma.enable); qt.enable = mkDefault true;
} }

View file

@ -1,31 +0,0 @@
{ pkgs
, lib
, config
, ... }: with lib; let
cfg = config.home.plasma;
in {
options.home.plasma = {
enable = mkEnableOption "KDE plasma desktop environment";
};
config = {
users.homeModules = [
# this module passes plasma configuration to home-manager
{ passthrough.plasma = cfg; }
];
specialisation.noplasma = with cfg; mkIf enable {
configuration = {
home.plasma.enable = mkForce false;
};
};
programs.regreet.enable = mkIf cfg.enable false;
services.xserver.enable = mkIf cfg.enable true;
services.xserver.displayManager.startx.enable = mkIf cfg.enable false;
services.xserver.displayManager.sddm.enable = mkIf cfg.enable true;
services.xserver.desktopManager.plasma5.enable = mkIf cfg.enable true;
users.home.persist.directories = mkIf cfg.enable [ ];
};
}