2015-07-24 17:34:08 +02:00
|
|
|
{ user-name, system-name }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2015-07-25 18:16:51 +02:00
|
|
|
eval = import <nixpkgs/nixos/lib/eval-config.nix> {
|
2015-07-24 17:34:08 +02:00
|
|
|
system = builtins.currentSystem;
|
2015-07-27 04:37:56 +02:00
|
|
|
modules = map (p: ./. + "/${p}") [
|
2015-07-28 20:40:25 +02:00
|
|
|
"${user-name}/1systems/${system-name}.nix"
|
|
|
|
"${user-name}/3modules"
|
2015-07-28 21:38:22 +02:00
|
|
|
"krebs/3modules"
|
2015-08-29 00:17:25 +02:00
|
|
|
] ++ [
|
|
|
|
({ lib, pkgs, ... }: {
|
|
|
|
_module.args.pkgs =
|
|
|
|
(import ./krebs/5pkgs { inherit lib pkgs; }) //
|
|
|
|
(import (./. + "/${user-name}/5pkgs") { inherit lib pkgs; });
|
|
|
|
})
|
2015-07-25 18:16:51 +02:00
|
|
|
];
|
|
|
|
};
|
2015-07-24 17:34:08 +02:00
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
2015-07-25 18:16:51 +02:00
|
|
|
inherit (eval) config options;
|
2015-07-24 17:34:08 +02:00
|
|
|
|
2015-07-25 18:16:51 +02:00
|
|
|
system = eval.config.system.build.toplevel;
|
2015-07-24 17:34:08 +02:00
|
|
|
}
|