blob: fdf39d56d383851c5ea227f70f5696d1b534cc27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{ config, lib, pkgs, ... }:
let
cfg = config.programs.mouse-actions;
in
{
options.programs.mouse-actions = {
enable = lib.mkEnableOption ''
mouse-actions udev rules. This is a prerequisite for using mouse-actions without being root.
'';
};
config = lib.mkIf cfg.enable {
services.udev.packages = [ pkgs.mouse-actions ];
};
}
|