nixos-config/modules/scroll-boost/default.nix

21 lines
505 B
Nix
Raw Normal View History

2020-12-29 21:31:36 +00:00
{ config, lib, ... }:
let
cfg = config.sconfig.scroll-boost;
in
2020-09-18 13:54:09 +00:00
{
2020-12-29 21:31:36 +00:00
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 ];
});
2020-09-18 13:54:09 +00:00
});
2020-12-29 21:31:36 +00:00
})
];
};
2020-09-18 13:54:09 +00:00
}