nixcfg/nixosModules/desktopConfig/default.nix
2024-03-29 08:03:37 -04:00

47 lines
1,013 B
Nix

{ pkgs, lib, config, ... }: {
imports =
[ ./displayManagers/lightdm ./gnome ./plasma ./windowManagers/hyprland ];
options = {
desktopConfig.enable =
lib.mkEnableOption "Enables basic GUI X11 and Wayland environment.";
};
config = lib.mkIf config.desktopConfig.enable {
# Enable the X11 windowing system.
services.xserver = {
enable = true;
xkb.layout = "us";
xkb.variant = "";
excludePackages = with pkgs; [ xterm ];
};
# Install pretty fonts.
fonts.packages = with pkgs;
[
liberation_ttf
(nerdfonts.override {
fonts = [
"DroidSansMono"
"FiraCode"
"FiraMono"
"Hack"
"Noto"
];
})
];
# Enable basic assortment of GUI apps.
environment.systemPackages = with pkgs; [
fractal
obsidian
tauon
webcord
zoom-us
];
desktopConfig.windowManagers.hyprland.enable = lib.mkDefault true;
};
}