nixos-config/modules/nixos/submodules/graphical-interface/default.nix
2024-03-26 22:05:03 +01:00

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;
};
};
}