logiops: Add logiops
This commit is contained in:
parent
06bd99cf68
commit
ef61d0d30b
@ -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\"";
|
||||
|
32
modules/services/logiops/default.nix
Normal file
32
modules/services/logiops/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user