plasma integration
This commit is contained in:
parent
1d74e569aa
commit
3eb2079d0c
3 changed files with 29 additions and 1 deletions
|
@ -37,7 +37,7 @@
|
|||
enable = true;
|
||||
changeDefaultNetwork = true;
|
||||
};
|
||||
de.gnome = {
|
||||
de.plasma = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
{
|
||||
imports = [
|
||||
./gnome.nix
|
||||
./plasma.nix
|
||||
];
|
||||
}
|
||||
|
|
27
nixosModules/system/de/plasma.nix
Normal file
27
nixosModules/system/de/plasma.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.krop.de.plasma;
|
||||
in
|
||||
{
|
||||
options.krop.de.plasma = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Enable KDE plasma";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.sddm.enable = true;
|
||||
displayManager.sddm.wayland.enable = true;
|
||||
desktopManager.plasma6.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue