nixos: export packages of the current configuration (its pkgs
argument)
Allows one to access a package configured with overrides given in `nixpkgs.config`, e.g.: nix-build ./nixos/default.nix -A pkgs.ffmpeg
This commit is contained in:
parent
2341c81427
commit
e1b1683981
@ -9,8 +9,6 @@ let
|
||||
modules = [ configuration ];
|
||||
};
|
||||
|
||||
inherit (eval) pkgs;
|
||||
|
||||
# This is for `nixos-rebuild build-vm'.
|
||||
vmConfig = (import ./lib/eval-config.nix {
|
||||
inherit system;
|
||||
@ -30,7 +28,7 @@ let
|
||||
in
|
||||
|
||||
{
|
||||
inherit (eval) config options;
|
||||
inherit (eval) pkgs config options;
|
||||
|
||||
system = eval.config.system.build.toplevel;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user