GNOME: Difference between revisions

imported>Onny
No edit summary
imported>WhiteBlackGoose
Dynamic triple buffering overlay added
Line 1: Line 1:
[https://gnome.org/ {{PAGENAME}}] ([[wikipedia:en:{{PAGENAME}}]]) is available as a [[module]] (and also especially as a module for <code>services.xserver.desktopManager</code>).
[https://gnome.org/ {{PAGENAME}}] ([[wikipedia:en:{{PAGENAME}}]]) is available as a [[module]] (and also especially as a module for <code>services.xserver.desktopManager</code>).


Line 112: Line 113:


After applying the update one also has restart their desktop session to refresh the user-specific dbus session.
After applying the update one also has restart their desktop session to refresh the user-specific dbus session.
=== Dynamic triple buffering ===
Big [https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1441 merge request] against Mutter improves the performance of the window manager by a lot (and is already used by Ubuntu). Not merged into nixpkgs due to [https://github.com/NixOS/nixpkgs/issues/197181 philosophy of nixpkgs], but users are free to add this overlay to get it too.
Currently it's adapted for Gnome 45.
<syntaxHighlight lang=nix>
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=";
        };
      } );
    });
  })
];
</syntaxHighlight>
You might need to disable aliases to make it work:
<syntaxHighlight lang=nix>
nixpkgs.config.allowAliases = false;
</syntaxHighlight>


== Troubleshoots ==
== Troubleshoots ==