1 { config, lib, pkgs, ... }:
3 cfg = config.services.ratbagd;
10 enable = lib.mkEnableOption "ratbagd for configuring gaming mice";
12 package = lib.mkPackageOption pkgs "libratbag" { };
18 config = lib.mkIf cfg.enable {
19 # Give users access to the "ratbagctl" tool
20 environment.systemPackages = [ cfg.package ];
22 services.dbus.packages = [ cfg.package ];
24 systemd.packages = [ cfg.package ];