From e7432ba62e943e64ee15e95aedfe65d9c9480a2f Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Thu, 6 Mar 2025 11:00:54 -0300 Subject: [PATCH] fix(modules/zenergy): correct the package and it's documentation --- flake.nix | 2 +- packages/README.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index d60ceef..e7cbdf9 100644 --- a/flake.nix +++ b/flake.nix @@ -74,7 +74,7 @@ packages."${system}" = { wb32dfu-udev-rules = pkgs.callPackage ./packages/wb32dfu-udev-rules { }; - zenergy = pkgs.callPackage ./packages/zenergy.nix { }; + zenergy = ./packages/zenergy.nix; }; nixosModules = { diff --git a/packages/README.md b/packages/README.md index 1bfcb3e..28c4635 100644 --- a/packages/README.md +++ b/packages/README.md @@ -4,6 +4,10 @@ This is a kernel driver that adds the ability for user to fetch power draw data [nixpkgs], so you shouldn't use this package _unless_ it is broken in your current version of [nixpkgs]. +To use it you must add to `boot.extraModulePackages` the following expression: `.callPackage +.packages.x86_64-linux.zenergy { kernel = }` substituting the tags with their +appopriate replacements. + ## wb32dfu-udev-rules This package installs the udev rules necessary to allow flashing QMK/Vial onto keyboards that use WB32-DFU bootloaders.