fix(hardware): use zenergy only in hardware specific code

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2024-10-28 17:01:48 -03:00
parent c63ca05471
commit 65f568d1e7
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
3 changed files with 10 additions and 6 deletions

View file

@ -1,9 +1,12 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
# Enable Zenergy
boot.initrd.kernelModules = [
"zenergy"
];
boot.extraModulePackages = [
(pkgs.callPackage ../kernel/zenergy.nix { kernel = pkgs.linux_zen; })
config.boot.kernelPackages.zenergy
];
# Enable openrazer for managing Razer products' configuration