pkgs.nixos: pass through lib

eval-config.nix re-imports lib/default.nix if it isn't passed an
instance which can bypass user defined extensions to lib. This is
confusing when overlaying nixpkgs with a modified lib and using
pkgs.nixos.

There are likely more instances of this sort of problem since things are
kind of happy to reimport lib, but I haven't spotted anything that seems
as serious. Most of those instances are jobset definitions and
maintainer scripts which should be fine to assume a vanilla lib.
This commit is contained in:
sternenseemann
2025-11-01 11:22:39 +01:00
parent 97052646f5
commit 1c356e2fa5
+1
View File
@@ -14152,6 +14152,7 @@ with pkgs;
configuration:
let
c = import (path + "/nixos/lib/eval-config.nix") {
inherit lib;
modules = [
(
{ lib, ... }: