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

This commit is contained in:
Alexandre Cavalheiro 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

@ -8,12 +8,10 @@
boot.initrd.kernelModules = [ boot.initrd.kernelModules = [
"amdgpu" "amdgpu"
"v4l2loopback" "v4l2loopback"
"zenergy"
]; ];
boot.extraModulePackages = [ boot.extraModulePackages = [
config.boot.kernelPackages.v4l2loopback config.boot.kernelPackages.v4l2loopback
config.boot.kernelPackages.zenergy
]; ];
boot.extraModprobeConfig = '' boot.extraModprobeConfig = ''

View file

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

View file

@ -1,9 +1,12 @@
{ pkgs, ... }: { config, ... }:
{ {
# Enable Zenergy # Enable Zenergy
boot.initrd.kernelModules = [
"zenergy"
];
boot.extraModulePackages = [ boot.extraModulePackages = [
(pkgs.callPackage ../kernel/zenergy.nix { kernel = pkgs.linux_zen; }) config.boot.kernelPackages.zenergy
]; ];
# enable a better driver for wireless xbox controllers. # enable a better driver for wireless xbox controllers.