27 lines
511 B
Nix
27 lines
511 B
Nix
{
|
|
options,
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
with lib.wyrdgard; let
|
|
cfg = config.wyrdgard.submodules.graphical-interface;
|
|
in {
|
|
options.wyrdgard.submodules.graphical-interface = with types; {
|
|
enable = mkBoolOpt false "Whether to enable a graphical interface";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.xserver = {
|
|
enable = true;
|
|
displayManager.sddm = {
|
|
enable = true;
|
|
wayland.enable = true;
|
|
};
|
|
desktopManager.plasma5.enable = true;
|
|
};
|
|
};
|
|
}
|