stockholm/default.nix

25 lines
449 B
Nix
Raw Normal View History

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;
modules = map (p: ./. + "/${p}") [
2015-07-28 20:40:25 +02:00
"${user-name}/1systems/${system-name}.nix"
"${user-name}/3modules"
"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
}