1 { config, lib, pkgs, ... }:
6 cfg = config.services.ratbagd;
13 enable = mkEnableOption (lib.mdDoc "ratbagd for configuring gaming mice");
19 config = mkIf cfg.enable {
20 # Give users access to the "ratbagctl" tool
21 environment.systemPackages = [ pkgs.libratbag ];
23 services.dbus.packages = [ pkgs.libratbag ];
25 systemd.packages = [ pkgs.libratbag ];