nixcfg/nixosModules/desktop/default.nix
2024-04-22 23:14:28 -04:00

43 lines
825 B
Nix

{
pkgs,
lib,
config,
...
}: {
imports = [
./gnome
./greetd
./hyprland
./lightdm
./plasma
./sway
];
options = {
alyraffauf.desktop.enable =
lib.mkEnableOption "Enable basic GUI X11 and Wayland environment.";
};
config = lib.mkIf config.alyraffauf.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 = "";
excludePackages = with pkgs; [xterm];
};
};
# Install pretty fonts.
fonts.packages = with pkgs; [
liberation_ttf
(nerdfonts.override {
fonts = ["DroidSansMono" "FiraCode" "FiraMono" "Hack" "Noto"];
})
];
};
}