Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixos-rebuild: Prefer the module lib when available
pkgs.lib and lib need not match, so prefer the one that the modules get. For example: ```nix nix-repl> :lf nixpkgs nix-repl> (lib.nixosSystem { modules = [ ({ lib, ... }: assert lib?nixosSystem; { nixpkgs.hostPlatform = "x86_64-linux"; }) ]; }).pkgs.lib?nixosSystem false ``` The code is backwards compatible, for the case where you evaluate a config whose nixpkgs doesn't have the preceding commit yet.
- Loading branch information