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.