mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-10 04:49:19 -08:00
20 lines
622 B
Nix
20 lines
622 B
Nix
{ config, lib, ... }: with lib; {
|
|
options = {
|
|
home-manager.users = let
|
|
userRazerExtend = { config, nixos, ... }: {
|
|
config = mkIf (config.wayland.windowManager.sway.enable && nixos.hardware.openrazer.enable) {
|
|
wayland.windowManager.sway.config.input = {
|
|
"5426:103:Razer_Razer_Naga_Trinity" = {
|
|
accel_profile = "adaptive";
|
|
pointer_accel = "-0.5";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
in mkOption {
|
|
type = types.attrsOf (types.submoduleWith {
|
|
modules = singleton userRazerExtend;
|
|
});
|
|
};
|
|
};
|
|
}
|