stop declarative maccel parameter tuning in nixos

This commit is contained in:
2026-03-25 12:41:35 +00:00
parent e4b4fbd13a
commit ead8ff2afd
+13 -6
View File
@@ -100,12 +100,19 @@ in {
hardware.maccel = {
enable = true;
enableCli = true;
parameters = {
mode = "linear";
sensMultiplier = 1.0;
acceleration = 0.3;
offset = 2.0;
outputCap = 2.0;
};
# Dotfile-managed maccel settings: place an executable script at
# ~/.config/maccel/apply.sh with your preferred `maccel set ...` commands.
systemd.user.services.maccel-apply-dotfiles = {
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'
'';
};
};