mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
15 lines
373 B
Nix
15 lines
373 B
Nix
{ 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 ];
|
|
};
|
|
}
|