forked from Fediversity/Fediversity
23 lines
507 B
Nix
23 lines
507 B
Nix
{
|
|
configuration,
|
|
system,
|
|
sources ? import ../npins,
|
|
}:
|
|
let
|
|
eval = import "${sources.nixpkgs}/nixos/lib/eval-config.nix" {
|
|
inherit system;
|
|
specialArgs = {
|
|
inherit sources;
|
|
};
|
|
modules = [ configuration ];
|
|
};
|
|
os = {
|
|
inherit (eval) pkgs config options;
|
|
system = eval.config.system.build.toplevel;
|
|
inherit (eval.config.system.build) vm vmWithBootLoader;
|
|
};
|
|
in
|
|
{
|
|
drv_path = os.config.system.build.toplevel.drvPath;
|
|
out_path = os.config.system.build.toplevel;
|
|
}
|