mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 15:49:16 -05:00
38 lines
871 B
Nix
38 lines
871 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
imports = [./displayManagers/lightdm ./desktopEnvironments ./windowManagers];
|
|
|
|
options = {
|
|
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];
|
|
};
|
|
};
|
|
|
|
# Install pretty fonts.
|
|
fonts.packages = with pkgs; [
|
|
liberation_ttf
|
|
(nerdfonts.override {
|
|
fonts = ["DroidSansMono" "FiraCode" "FiraMono" "Hack" "Noto"];
|
|
})
|
|
];
|
|
|
|
desktopConfig.windowManagers.hyprland.enable = lib.mkDefault true;
|
|
};
|
|
}
|