2015-07-24 17:34:08 +02:00
|
|
|
{ user-name, system-name }:
|
|
|
|
|
|
|
|
let
|
2015-07-27 21:36:15 +02:00
|
|
|
lib = import 4lib/krebs {
|
|
|
|
lib = import <nixpkgs/lib>;
|
|
|
|
};
|
2015-07-24 17:34:08 +02:00
|
|
|
|
2015-07-25 18:16:51 +02:00
|
|
|
eval = import <nixpkgs/nixos/lib/eval-config.nix> {
|
2015-07-27 21:36:15 +02:00
|
|
|
inherit lib;
|
2015-07-24 17:34:08 +02:00
|
|
|
system = builtins.currentSystem;
|
2015-07-27 04:37:56 +02:00
|
|
|
modules = map (p: ./. + "/${p}") [
|
|
|
|
"${user-name}/systems/${system-name}.nix"
|
|
|
|
"${user-name}/modules"
|
|
|
|
"3modules/krebs"
|
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
|
|
|
}
|