add maccel

This commit is contained in:
2026-03-23 19:48:07 +00:00
parent c176a082c8
commit e4b4fbd13a
3 changed files with 32 additions and 0 deletions
Generated
+16
View File
@@ -99,6 +99,21 @@
"type": "github" "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": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1754028485, "lastModified": 1754028485,
@@ -136,6 +151,7 @@
"agenix": "agenix", "agenix": "agenix",
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"import-tree": "import-tree", "import-tree": "import-tree",
"maccel": "maccel",
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
} }
}, },
+1
View File
@@ -10,6 +10,7 @@
import-tree.url = "github:vic/import-tree"; import-tree.url = "github:vic/import-tree";
agenix.url = "github:ryantm/agenix"; agenix.url = "github:ryantm/agenix";
maccel.url = "github:Gnarus-G/maccel";
}; };
outputs = outputs =
+15
View File
@@ -17,6 +17,7 @@ in {
in { in {
imports = [ imports = [
inputs.agenix.nixosModules.default inputs.agenix.nixosModules.default
inputs.maccel.nixosModules.default
../../hardware-configuration.nix ../../hardware-configuration.nix
]; ];
@@ -94,6 +95,20 @@ in {
extraGroups = ["networkmanager" "wheel"]; 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 # Programs
# Allow unfree # Allow unfree