nixos-config/modules/scroll-boost/default.nix
2020-12-29 16:31:36 -05:00

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 ];
});
});
})
];
};
}