From f126b88dafe313d897c35cde3242902cba000762 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" <contact@thewizard.link> Date: Thu, 6 Mar 2025 11:13:45 -0300 Subject: [PATCH] fix(packages/zenergy): remove package from flake and explain how to use it --- flake.nix | 1 - packages/README.md | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index d60ceef..39c641f 100644 --- a/flake.nix +++ b/flake.nix @@ -74,7 +74,6 @@ packages."${system}" = { wb32dfu-udev-rules = pkgs.callPackage ./packages/wb32dfu-udev-rules { }; - zenergy = pkgs.callPackage ./packages/zenergy.nix { }; }; nixosModules = { diff --git a/packages/README.md b/packages/README.md index 8d3a894..69f11f9 100644 --- a/packages/README.md +++ b/packages/README.md @@ -4,6 +4,13 @@ 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]. +Unfortunately this cannot be outputted as a package in the flake since to create a derivation the `kernel` parameter +must be present, which, each user will have their own kernel package. + +Thus you need to copy the `zenergy.nix` file somewhere in your configuration and inside `boot.extraModulePackages` pass +the package with the following expression: `config.boot.kernelPackages.callPackage ./path/to/zenergy.nix`; successfully +installing the package onto your system. + ## wb32dfu-udev-rules This package installs the udev rules necessary to allow flashing QMK/Vial onto keyboards that use WB32-DFU bootloaders.