logiops: Add logiops

This commit is contained in:
PapaTutuWawa 2022-05-29 19:06:32 +02:00
parent 06bd99cf68
commit ef61d0d30b
2 changed files with 33 additions and 0 deletions

View File

@ -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\"";

View File

@ -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";
};
};
};
}