@@ -23932,6 +23932,8 @@ in
2393223932 initialRamdisk.
2393323933 The result can be extended in the modules by defining
2393423934 extra attributes in system.build.
23935+ Alternatively, you may use the result's config and
23936+ options attributes to query any option.
2393523937
2393623938 Example:
2393723939
@@ -23969,10 +23971,13 @@ in
2396923971 Note that you will need to have called Nixpkgs with the system
2397023972 parameter set to the right value for your deployment target.
2397123973 */
23972− nixos = configuration:
23973− (import (pkgs.path + "/nixos/lib/eval-config.nix") {
23974− inherit (pkgs.stdenv.hostPlatform) system;
23975− modules = [(
23974+ nixos =
23975+ configuration:
23976+ let
23977+ c = import (pkgs.path + "/nixos/lib/eval-config.nix") {
23978+ inherit (pkgs.stdenv.hostPlatform) system;
23979+ modules =
23980+ [(
2397623981 { lib, ... }: {
2397723982 config.nixpkgs.pkgs = lib.mkDefault pkgs;
2397823983 }
@@ -23981,7 +23986,9 @@ in
2398123986 then configuration
2398223987 else [configuration]
2398323988 );
23984− }).config.system.build;
23989+ };
23990+ in
23991+ c.config.system.build // c;
2398523992
2398623993
2398723994 /*