new option: sane.gui.plasma.enable to enable desktop KDE plasma

this is useful for testing applications which are designed for KDE
first.
This commit is contained in:
colin 2022-11-03 03:09:14 -07:00
parent 14b334ff55
commit 6d52c0e8ab
2 changed files with 29 additions and 0 deletions

View File

@ -8,6 +8,7 @@ in
imports = [
./gnome.nix
./phosh.nix
./plasma.nix
./plasma-mobile.nix
./sway.nix
];

28
modules/gui/plasma.nix Normal file
View File

@ -0,0 +1,28 @@
{ lib, config, ... }:
with lib;
let
cfg = config.sane.gui.plasma;
in
{
options = {
sane.gui.plasma.enable = mkOption {
default = false;
type = types.bool;
};
};
config = mkIf cfg.enable {
sane.gui.enable = true;
# start plasma on boot
services.xserver.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
services.xserver.displayManager.sddm.enable = true;
# gnome does networking stuff with networkmanager
networking.useDHCP = false;
networking.networkmanager.enable = true;
networking.wireless.enable = lib.mkForce false;
};
}