mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +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 ];
|
|
});
|
|
});
|
|
})
|
|
];
|
|
};
|
|
}
|