Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time. Cannot retrieve contributors at this time
28 lines (24 sloc) 587 Bytes
{ paths
, configuration
, evaluator ? (x: x)
}:
let
pkgsModule = { paths, lib, config, ... }: {
imports = [ (paths.nixpkgs + "/nixos/modules/misc/nixpkgs.nix") ];
nixpkgs.system = lib.mkDefault builtins.currentSystem;
nixpkgs.pkgs = lib.mkDefault (
import paths.nixpkgs {
inherit (config.nixpkgs) config localSystem crossSystem;
}
);
};
paths' = import ./eval-paths.nix paths;
in evaluator (
(import (paths'.nixpkgs + "/lib")).evalModules {
specialArgs.paths = paths';
modules = [
configuration
pkgsModule
];
}
)
You can’t perform that action at this time.