Enable Mutter dynamic tripple buffering patch

This commit is contained in:
Jo 2025-03-18 02:58:14 +01:00
parent 3958d51e78
commit de5c068d60
2 changed files with 31 additions and 3 deletions

View file

@ -12,6 +12,34 @@
inputs.hardware.nixosModules.common-pc-laptop-ssd
];
nixpkgs.overlays = [
(final: prev: {
mutter = prev.mutter.overrideAttrs (oldAttrs: {
# GNOME dynamic triple buffering
# See https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1441
src = final.fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "vanvugt";
repo = "mutter";
rev = "triple-buffering-v4-47";
hash = "sha256-6n5HSbocU8QDwuhBvhRuvkUE4NflUiUKE0QQ5DJEzwI=";
};
preConfigure = let
gvdb = final.fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "gvdb";
rev = "2b42fc75f09dbe1cd1057580b5782b08f2dcb400";
hash = "sha256-CIdEwRbtxWCwgTb5HYHrixXi+G+qeE1APRaUeka3NWk=";
};
in ''
cp -a "${gvdb}" ./subprojects/gvdb
'';
});
})
];
# Configure Sops
sops.defaultSopsFile = lib.snowfall.fs.get-file "secrets/default.yaml";
sops.age.keyFile = "/var/lib/sops-nix/key.txt"; # The main AGE key is expected in this location, it is only needed for this system.