nixcfg/nixosModules/desktop/default.nix
2024-05-27 21:39:30 -04:00

47 lines
853 B
Nix

{
pkgs,
lib,
config,
...
}: {
imports = [
./cinnamon
./gnome
./greetd
./hyprland
./lightdm
./plasma
./sway
./waylandComp.nix
];
options = {
alyraffauf.desktop.enable =
lib.mkEnableOption "Enable basic GUI X11 and Wayland environment.";
};
config = lib.mkIf config.alyraffauf.desktop.enable {
environment.sessionVariables.NIXOS_OZONE_WL = "1";
fonts.packages = with pkgs; [
liberation_ttf
(nerdfonts.override {
fonts = ["DroidSansMono" "Noto"];
})
];
services = {
gnome.gnome-keyring.enable = true;
gvfs.enable = true; # Mount, trash, etc.
xserver = {
enable = true;
xkb = {
layout = "us";
variant = "altgr-intl";
};
excludePackages = with pkgs; [xterm];
};
};
};
}