flake: be backwards-compatible for --impure
We cannot pass `overlays = ...` to `nixpkgs` directly because by default overlays from `~/.config/nixpkgs` are loaded in there. This doesn't happen by default, but when using `--impure`. Explicitly specifying that ignores these overlays. By using `pkgs.extend` the old behavior can be kept and the new overlay can be applied. Co-authored-by: Silvan Mosberger <contact@infinisil.com>
This commit is contained in:
parent
ede5720a0d
commit
cb289a9256
1 changed files with 3 additions and 4 deletions
|
@ -52,10 +52,9 @@
|
||||||
# attribute it displays `omitted` instead of evaluating all packages,
|
# attribute it displays `omitted` instead of evaluating all packages,
|
||||||
# which keeps `nix flake show` on Nixpkgs reasonably fast, though less
|
# which keeps `nix flake show` on Nixpkgs reasonably fast, though less
|
||||||
# information rich.
|
# information rich.
|
||||||
legacyPackages = forAllSystems (system: import ./. {
|
legacyPackages = forAllSystems (system:
|
||||||
inherit system;
|
(import ./. { inherit system; }).extend self.overlays.setLibVersionInfo
|
||||||
overlays = [ self.overlays.setLibVersionInfo ];
|
);
|
||||||
});
|
|
||||||
|
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
notDetected = ./nixos/modules/installer/scan/not-detected.nix;
|
notDetected = ./nixos/modules/installer/scan/not-detected.nix;
|
||||||
|
|
Loading…
Reference in a new issue