about summary refs log tree commit diff
path: root/labernix/release.nix
blob: 1edf284a30347d12337a250aefb889d4e645df59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
with import <nixpkgs/lib>;

let
  system = "x86_64-linux";

  genMachine = name: cfg: (import <nixpkgs/nixos/lib/eval-config.nix> {
    inherit system;
    modules = [ cfg ];
  }).config.system.build.toplevel;

in {
  machines = mapAttrs genMachine (import ./default.nix).machines;
  tests = {
    heinrich = import ./tests/heinrich.nix { inherit system; };
  };

  pkgs = import ./pkgs {
    pkgs = import <nixpkgs> {
      inherit system;
    };
  };
}