From 759fe2dd6882f1ce4f7712fecd7ebec22f11d556 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Fri, 22 Aug 2025 18:31:25 -0300 Subject: [PATCH] fix: deprecate zenergy and remove it from host configurations Currently incompatible with Linux 6.16, waiting on BoukeHaarsma23 to approve a pull request fixing it. --- hosts/wizdesk/nixos.nix | 8 -------- hosts/wizlap/nixos.nix | 8 -------- shared/nixos/system.nix | 5 +++-- 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/hosts/wizdesk/nixos.nix b/hosts/wizdesk/nixos.nix index 08ec555..47d5aa3 100644 --- a/hosts/wizdesk/nixos.nix +++ b/hosts/wizdesk/nixos.nix @@ -137,14 +137,6 @@ # HARDWARE # # - # Enable Zenergy - boot.initrd.kernelModules = [ - "zenergy" - ]; - boot.extraModulePackages = [ - config.boot.kernelPackages.zenergy - ]; - # Enable openrazer for managing Razer products' configuration hardware.openrazer = { enable = true; diff --git a/hosts/wizlap/nixos.nix b/hosts/wizlap/nixos.nix index 61437fc..4180ff3 100644 --- a/hosts/wizlap/nixos.nix +++ b/hosts/wizlap/nixos.nix @@ -105,14 +105,6 @@ # HARDWARE # # - # Enable Zenergy - boot.initrd.kernelModules = [ - "zenergy" - ]; - boot.extraModulePackages = [ - config.boot.kernelPackages.zenergy - ]; - # enable a better driver for wireless xbox controllers. hardware.xpadneo.enable = true; } diff --git a/shared/nixos/system.nix b/shared/nixos/system.nix index 8f22fe5..f5d8205 100644 --- a/shared/nixos/system.nix +++ b/shared/nixos/system.nix @@ -6,12 +6,13 @@ boot.initrd.kernelModules = [ "v4l2loopback" - "zenergy" + # "zenergy" FIXME: Broken in Linux 6.16 since June - https://github.com/BoukeHaarsma23/zenergy/issues/15 ]; boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback - config.boot.kernelPackages.zenergy # Allows fetching power draw information on AMD CPUs + # config.boot.kernelPackages.zenergy # Allows fetching power draw information on AMD CPUs + # FIXME: Look at the FIXME before this. ]; # Configure v4l2loopback