Hardware/Razer: Difference between revisions
Copy changes from nixos.wiki |
Updating to unstable version of openrazer |
||
Line 64: | Line 64: | ||
https://wiki.archlinux.org/title/Razer_Blade | https://wiki.archlinux.org/title/Razer_Blade | ||
<h2>Updating your system to use the unstable drivers and daemon</h2> | |||
If you are using a new model from razer it probably is not available in the stable packages. | |||
But it might be available in the unstable ones. | |||
In your configuration.nix file: | |||
<syntaxHighlight lang=nix> | |||
nixpkgs.config = { | |||
allowUnfree = true; | |||
packageOverrides = pkgs: { | |||
stable = import <nixos-stable> {config = config.nixpkgs.config;}; | |||
unstable = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz") { config = config.nixpkgs.config; }; | |||
}; | |||
}; | |||
# updates the whole kernel to unstable so you have the correct drivers. | |||
boot.kernelPackages = pkgs.unstable.linuxPackages; | |||
# overrides the openrazer-daemon that the harware.openrazer.enable starts | |||
nixpkgs.overlays = [ | |||
(final: prev: { | |||
openrazer-daemon = pkgs.unstable.openrazer-daemon; | |||
}) | |||
]; | |||
environment.systemPackages = with pkgs; [ | |||
unstable.polychromatic | |||
# alternatively | |||
# unstable.razergenie | |||
]; | |||
</syntaxHighlight> |