plasma integration
This commit is contained in:
parent
f9b130f312
commit
6cc4677b97
3 changed files with 29 additions and 1 deletions
|
@ -37,7 +37,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
changeDefaultNetwork = true;
|
changeDefaultNetwork = true;
|
||||||
};
|
};
|
||||||
de.gnome = {
|
de.plasma = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./gnome.nix
|
./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