diff --git a/hosts/miku.nix b/hosts/miku.nix index 7f72c98..1714e03 100644 --- a/hosts/miku.nix +++ b/hosts/miku.nix @@ -81,6 +81,7 @@ services = { gamemode.enable = true; gnome.enable = true; + logiops.enable = true; input-remapper = { enable = true; postStartCommand = "${pkgs.input-remapper}/bin/input-remapper-control --command start --preset NOOP --device \"Razer Razer Tartarus V2\""; diff --git a/modules/services/logiops/default.nix b/modules/services/logiops/default.nix new file mode 100644 index 0000000..174e4d5 --- /dev/null +++ b/modules/services/logiops/default.nix @@ -0,0 +1,32 @@ +{ lib, pkgs, config, ... }: + +let + cfg = config.ptw.services.logiops; +in { + options.ptw.services.logiops = { + enable = lib.mkEnableOption "Enable logiops"; + }; + + config = lib.mkIf true { + environment.etc."logid.conf".text = '' +devices: ( +{ + name: "Wireless Mouse MX Master 3"; + hiresscroll: { + hires: true; + }; + dpi: 800; +} +); + ''; + + systemd.services.logiops = { + description = "An unofficial userspace driver for HID++ Logitech devices"; + wantedBy = [ "default.target" ]; + serviceConfig = { + Type = "simple"; + ExecStart = "${pkgs.logiops}/bin/logid"; + }; + }; + }; +}