mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 22:43:55 -05:00
24 lines
772 B
Nix
24 lines
772 B
Nix
|
{ pkgs, lib, config, ... }: {
|
||
|
|
||
|
options = {
|
||
|
desktopConfig.gnome.tripleBuffering.enable =
|
||
|
lib.mkEnableOption "Enables dynamic triple buffering for GNOME.";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf config.desktopConfig.gnome.tripleBuffering.enable {
|
||
|
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=";
|
||
|
};
|
||
|
});
|
||
|
});
|
||
|
})
|
||
|
];
|
||
|
};
|
||
|
}
|