From 1ff39bc2cff34cb4aef22785d0d70bbc90efa3f5 Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Thu, 14 Mar 2024 16:02:18 -0300 Subject: first commit --- modules/gnome.nix | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 modules/gnome.nix (limited to 'modules/gnome.nix') diff --git a/modules/gnome.nix b/modules/gnome.nix new file mode 100644 index 0000000..d00b935 --- /dev/null +++ b/modules/gnome.nix @@ -0,0 +1,63 @@ +{inputs, pkgs, ...}: +{ + config = { + # enable buffering for better perfomance + programs.dconf.enable = true; + nixpkgs.overlays = [ + (final: prev: { + gnome = prev.gnome.overrideScope' (gnomeFinal: gnomePrev: { + mutter = gnomePrev.mutter.overrideAttrs ( old: { + src = pkgs.fetchgit { + url = "https://gitlab.gnome.org/vanvugt/mutter.git"; + # GNOME 45: triple-buffering-v4-45 + rev = "0b896518b2028d9c4d6ea44806d093fd33793689"; + sha256 = "sha256-mzNy5GPlB2qkI2KEAErJQzO//uo8yO0kPQUwvGDwR4w="; + }; + } ); + }); + }) + ]; + environment.systemPackages = with pkgs; [ + gnome.gnome-tweaks + pkgs.orchis-theme + pkgs.papirus-icon-theme + ] ++ (with gnomeExtensions; [ + appindicator + vitals + user-themes + blur-my-shell + gesture-improvements + ]); + + environment.gnome.excludePackages = (with pkgs; [ + gnome-photos + gnome-tour + gedit + ]) ++ (with pkgs.gnome; [ + cheese # webcam tool + gnome-music + gnome-terminal + epiphany # web browser + geary # email reader + evince # document viewer + gnome-characters + totem # video player + tali # poker game + iagno # go game + hitori # sudoku game + atomix # puzzle game + ]); + services.xserver = { + displayManager.gdm = { + enable = true; + wayland = false; + }; + desktopManager.gnome.enable = true; + }; + services.udev.packages = [ pkgs.gnome.gnome-settings-daemon ]; + services.gnome = { + gnome-browser-connector.enable = true; + gnome-keyring.enable = true; + }; + }; +} -- cgit v1.2.3