diff options
| author | Mirza Arnaut <mirza.arnaut45@gmail.com> | 2025-07-24 14:08:33 +0200 |
|---|---|---|
| committer | Mirza Arnaut <mirza.arnaut45@gmail.com> | 2025-07-27 19:12:59 +0200 |
| commit | 15ad26705be8bcb7a8b1af6078e71a1de399b83b (patch) | |
| tree | c144c3dc03c06e4ebb57b7ad793707dbe544b82b /pkgs/development/python-modules/rangehttpserver | |
| parent | e60c6223f6663b95d9b617c3709c82ba451755d9 (diff) | |
nixos/hardware.fw-fanctrl: add package option and refactor using lib.attrsets.recursiveUpdate
Typically services have a `package` option, so it can be set externally
if users are running the stable version but want the package from
unstable, or devs want to test a package from their flake in production.
Really useful in many situations!
Also, the previous implementation was using `pkgs.runCommand` which is
discouraged due to
[IFD](https://nix.dev/manual/nix/2.26/language/import-from-derivation)
(import from derivation) leading to potential slowdowns during
evaluation. I opted for reading the json file and using
[lib.attrsets.recursiveUpdate](https://ryantm.github.io/nixpkgs/functions/library/attrsets/#function-library-lib.attrsets.recursiveUpdate)
to update the default values with the user provided ones.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
