openrazer: add openrazer driver module
This commit is contained in:
parent
4da052d0bd
commit
f5b89fcda1
3 changed files with 17 additions and 0 deletions
14
nixosModules/drivers/openrazer.nix
Normal file
14
nixosModules/drivers/openrazer.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.settings.drivers.openrazer = {
|
||||
enable = lib.mkEnableOption "Enable the openrazer drivers for razer device-specific features (IE RGB lights control)";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.settings.drivers.openrazer.enable {
|
||||
hardware.openrazer.enable = true;
|
||||
hardware.openrazer.users = [
|
||||
"fedfer"
|
||||
"veneficium"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue