summaryrefslogtreecommitdiffstats
path: root/default.nix
blob: b7468dbe7a6bb047f0a9268825ceb00a7006e5bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ user-name, system-name }:

let
  lib = import 4lib/krebs {
    lib = import <nixpkgs/lib>;
  };

  eval = import <nixpkgs/nixos/lib/eval-config.nix> {
    inherit lib;
    system = builtins.currentSystem;
    modules = map (p: ./. + "/${p}") [
      "${user-name}/systems/${system-name}.nix"
      "${user-name}/modules"
      "3modules/krebs"
    ];
  };

in

{
  inherit (eval) config options;

  system = eval.config.system.build.toplevel;
}