perf!: remove plasma desktop
This commit is contained in:
parent
6b76515386
commit
f054916ef0
2 changed files with 2 additions and 33 deletions
|
@ -22,8 +22,8 @@
|
|||
};
|
||||
|
||||
# unify qt theme
|
||||
qt.platformTheme = mkIf (!config.passthrough.plasma.enable) "gtk";
|
||||
qt.platformTheme = mkDefault "gtk";
|
||||
|
||||
gtk.enable = mkDefault true;
|
||||
qt.enable = mkDefault (!config.passthrough.plasma.enable);
|
||||
qt.enable = mkDefault true;
|
||||
}
|
||||
|
|
|
@ -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 [ ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue