mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
gnome: mouse latency patch
This commit is contained in:
parent
0e5be61ecd
commit
40d99ef149
2 changed files with 28 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
./modules/backports.nix
|
||||
./modules/baseline.nix
|
||||
./modules/cli.nix
|
||||
./modules/fix-gnome-mouse-lag.nix
|
||||
./modules/flakes.nix
|
||||
./modules/phpipam.nix
|
||||
./modules/profiles.nix
|
||||
|
|
27
modules/fix-gnome-mouse-lag.nix
Normal file
27
modules/fix-gnome-mouse-lag.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
cfg = config.sconfig.fix-gnome-mouse-lag;
|
||||
in
|
||||
{
|
||||
options.sconfig.fix-gnome-mouse-lag = lib.mkEnableOption "Reduce mouse latency on wayland";
|
||||
|
||||
config = lib.mkIf cfg {
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
gnome3 = super.gnome3 // {
|
||||
gnome-shell = super.gnome3.gnome-shell.override {
|
||||
mutter = super.gnome3.mutter.overrideAttrs (old: {
|
||||
patches = old.patches ++ [
|
||||
(pkgs.fetchurl {
|
||||
url = "https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/168.patch";
|
||||
sha256 = "f9e71b14c791ac7553ff4ed2d0d5b612fc886c5aa771587965a6ffd99cb98b86";
|
||||
})
|
||||
];
|
||||
});
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in a new issue