stop declarative maccel parameter tuning in nixos
This commit is contained in:
+13
-6
@@ -100,12 +100,19 @@ in {
|
|||||||
hardware.maccel = {
|
hardware.maccel = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCli = true;
|
enableCli = true;
|
||||||
parameters = {
|
};
|
||||||
mode = "linear";
|
|
||||||
sensMultiplier = 1.0;
|
# Dotfile-managed maccel settings: place an executable script at
|
||||||
acceleration = 0.3;
|
# ~/.config/maccel/apply.sh with your preferred `maccel set ...` commands.
|
||||||
offset = 2.0;
|
systemd.user.services.maccel-apply-dotfiles = {
|
||||||
outputCap = 2.0;
|
description = "apply maccel params from ~/.config/maccel/apply.sh";
|
||||||
|
wantedBy = ["default.target"];
|
||||||
|
after = ["default.target"];
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "oneshot";
|
||||||
|
ExecStart = ''
|
||||||
|
${pkgs.bash}/bin/bash -lc 'PATH=/run/current-system/sw/bin:$PATH; if [ -x "$HOME/.config/maccel/apply.sh" ]; then "$HOME/.config/maccel/apply.sh"; fi'
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user