mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
20 lines
505 B
Nix
20 lines
505 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.sconfig.scroll-boost;
|
|
in
|
|
{
|
|
options.sconfig.scroll-boost = lib.mkEnableOption "Patch xf86-libinput scroll speed";
|
|
|
|
config = lib.mkIf cfg {
|
|
nixpkgs.overlays = [
|
|
(self: super: {
|
|
xorg = super.xorg.overrideScope' (selfB: superB: {
|
|
inherit (super.xorg) xlibsWrapper;
|
|
xf86inputlibinput = superB.xf86inputlibinput.overrideAttrs (attr: {
|
|
patches = [ ./libinput.patch ];
|
|
});
|
|
});
|
|
})
|
|
];
|
|
};
|
|
}
|