2024-02-07 01:22:34 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.mouse-actions;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.programs.mouse-actions = {
|
|
|
|
enable = lib.mkEnableOption ''
|
2024-07-01 15:47:52 +00:00
|
|
|
mouse-actions udev rules. This is a prerequisite for using mouse-actions without being root
|
2024-02-07 01:22:34 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
services.udev.packages = [ pkgs.mouse-actions ];
|
|
|
|
};
|
|
|
|
}
|