mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
flake: allow specifying the lib argument to nixosSystem
Some configs rely on being able to pass their own lib argument into
nixosSystem, for instance in order to add their own additional overlay
to nixpkgs.lib.
This was broken by 039f73f134
.
This commit is contained in:
parent
d20560a3ad
commit
981754ba5c
1 changed files with 3 additions and 2 deletions
|
@ -21,12 +21,13 @@
|
||||||
|
|
||||||
nixosSystem = args:
|
nixosSystem = args:
|
||||||
import ./nixos/lib/eval-config.nix (
|
import ./nixos/lib/eval-config.nix (
|
||||||
args // { inherit (self) lib; } // lib.optionalAttrs (! args?system) {
|
{
|
||||||
|
lib = final;
|
||||||
# Allow system to be set modularly in nixpkgs.system.
|
# Allow system to be set modularly in nixpkgs.system.
|
||||||
# We set it to null, to remove the "legacy" entrypoint's
|
# We set it to null, to remove the "legacy" entrypoint's
|
||||||
# non-hermetic default.
|
# non-hermetic default.
|
||||||
system = null;
|
system = null;
|
||||||
}
|
} // args
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue