nixcfg/nixosModules/desktop/default.nix

38 lines
810 B
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
pkgs,
lib,
config,
...
}: {
2024-04-17 21:22:22 -04:00
imports = [./gnome ./hyprland ./lightdm ./plasma];
options = {
2024-04-17 21:22:22 -04:00
desktop.enable =
lib.mkEnableOption "Enable basic GUI X11 and Wayland environment.";
};
2024-04-17 21:22:22 -04:00
config = lib.mkIf config.desktop.enable {
services = {
gnome.gnome-keyring.enable = true;
gvfs.enable = true; # Mount, trash, etc.
# Enable the X11 windowing system.
xserver = {
enable = true;
xkb.layout = "us";
xkb.variant = "";
2024-04-07 22:16:33 -04:00
excludePackages = with pkgs; [xterm];
};
};
2024-03-28 16:40:23 -04:00
# Install pretty fonts.
fonts.packages = with pkgs; [
liberation_ttf
(nerdfonts.override {
2024-04-07 22:16:33 -04:00
fonts = ["DroidSansMono" "FiraCode" "FiraMono" "Hack" "Noto"];
})
];
2024-04-17 21:22:22 -04:00
desktop.hyprland.enable = lib.mkDefault true;
};
2024-03-28 16:40:23 -04:00
}