From e4b4fbd13abd4ab5502d1519e2ada6fe19be109a Mon Sep 17 00:00:00 2001 From: "Thomas G. Lopes" Date: Mon, 23 Mar 2026 19:48:07 +0000 Subject: [PATCH] add maccel --- flake.lock | 16 ++++++++++++++++ flake.nix | 1 + modules/hosts/nixos.nix | 15 +++++++++++++++ 3 files changed, 32 insertions(+) diff --git a/flake.lock b/flake.lock index 9149010..b2bd84d 100644 --- a/flake.lock +++ b/flake.lock @@ -99,6 +99,21 @@ "type": "github" } }, + "maccel": { + "locked": { + "lastModified": 1771614512, + "narHash": "sha256-KzvNWDGVpoNcR9wcIOlwxr6Nwtgt9Hicck/0fswhi7U=", + "owner": "Gnarus-G", + "repo": "maccel", + "rev": "c7c1369d4bd4f240b38365cd43bd696d06635e4d", + "type": "github" + }, + "original": { + "owner": "Gnarus-G", + "repo": "maccel", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1754028485, @@ -136,6 +151,7 @@ "agenix": "agenix", "flake-parts": "flake-parts", "import-tree": "import-tree", + "maccel": "maccel", "nixpkgs": "nixpkgs_2" } }, diff --git a/flake.nix b/flake.nix index a1b2f14..be5fa21 100644 --- a/flake.nix +++ b/flake.nix @@ -10,6 +10,7 @@ import-tree.url = "github:vic/import-tree"; agenix.url = "github:ryantm/agenix"; + maccel.url = "github:Gnarus-G/maccel"; }; outputs = diff --git a/modules/hosts/nixos.nix b/modules/hosts/nixos.nix index 4682acf..cb2c596 100644 --- a/modules/hosts/nixos.nix +++ b/modules/hosts/nixos.nix @@ -17,6 +17,7 @@ in { in { imports = [ inputs.agenix.nixosModules.default + inputs.maccel.nixosModules.default ../../hardware-configuration.nix ]; @@ -94,6 +95,20 @@ in { extraGroups = ["networkmanager" "wheel"]; }; + users.groups.maccel.members = [flakeConfig.username]; + + hardware.maccel = { + enable = true; + enableCli = true; + parameters = { + mode = "linear"; + sensMultiplier = 1.0; + acceleration = 0.3; + offset = 2.0; + outputCap = 2.0; + }; + }; + # Programs # Allow unfree