blob: 73dc783e3100b7743792ec0d9d58b3afae18582d (
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 ];
};
}
|