summaryrefslogtreecommitdiffstats
path: root/default.nix
blob: 875f0d5b4f5bbc171aefcdb2ad9a26b44ca141d7 (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
25
26
{ user-name, system-name }:

let

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

in

{
  inherit (eval) config options;

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