b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
27 lines
491 B
Nix
27 lines
491 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.services.ratbagd;
|
|
in
|
|
{
|
|
###### interface
|
|
|
|
options = {
|
|
services.ratbagd = {
|
|
enable = mkEnableOption (lib.mdDoc "ratbagd for configuring gaming mice");
|
|
};
|
|
};
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
# Give users access to the "ratbagctl" tool
|
|
environment.systemPackages = [ pkgs.libratbag ];
|
|
|
|
services.dbus.packages = [ pkgs.libratbag ];
|
|
|
|
systemd.packages = [ pkgs.libratbag ];
|
|
};
|
|
}
|