nixcfg/nixosModules/desktopConfig/default.nix

36 lines
875 B
Nix
Raw Normal View History

{ pkgs, lib, config, ... }: {
2024-03-28 20:37:53 -04:00
imports =
2024-03-29 08:40:42 -04:00
[ ./displayManagers/lightdm ./desktopEnvironments ./windowManagers ];
options = {
2024-03-28 16:40:23 -04:00
desktopConfig.enable =
lib.mkEnableOption "Enables basic GUI X11 and Wayland environment.";
};
config = lib.mkIf config.desktopConfig.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 = "";
excludePackages = with pkgs; [ xterm ];
};
};
2024-03-28 16:40:23 -04:00
# Install pretty fonts.
fonts.packages = with pkgs; [
liberation_ttf
(nerdfonts.override {
fonts = [ "DroidSansMono" "FiraCode" "FiraMono" "Hack" "Noto" ];
})
];
desktopConfig.windowManagers.hyprland.enable = lib.mkDefault true;
};
2024-03-28 16:40:23 -04:00
}