modularize

This commit is contained in:
Henri Dohmen 2025-06-30 22:39:38 +02:00
parent d3fa1821fa
commit f1a1dd5d53
27 changed files with 422 additions and 325 deletions

View file

@ -0,0 +1,22 @@
{
pkgs,
config,
lib,
...
}:
let
cfg = config.desktop.wm;
inherit (lib) mkEnableOption mkIf;
in
{
options.desktop.wm.enable = mkEnableOption "Window Manager";
config = mkIf cfg.enable {
# Enable the KDE Plasma Desktop Environment.
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
};
services.desktopManager.plasma6.enable = true;
};
}