diff options
author | r-vdp <ramses@well-founded.dev> | 2023-12-13 10:20:58 +0100 |
---|---|---|
committer | r-vdp <ramses@well-founded.dev> | 2023-12-29 00:52:12 +0100 |
commit | 981754ba5ce433b872c71a901e7d1979b07415ab (patch) | |
tree | 74cc3b26bce59bc63de863e2776207b1c39c2dc8 | |
parent | d20560a3ad7b7c910f0335b2be1fc59a33f36a75 (diff) |
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.
-rw-r--r-- | flake.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix index f16bc7d05fce..ff04e6b972d8 100644 --- a/flake.nix +++ b/flake.nix @@ -21,12 +21,13 @@ nixosSystem = args: 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. # We set it to null, to remove the "legacy" entrypoint's # non-hermetic default. system = null; - } + } // args ); }); |