about summary refs log tree commit diff
path: root/labernix/release.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-03-18 01:12:15 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-03-18 01:12:15 +0100
commit692b0772223074133c5fe74d84ea727fb00499e3 (patch)
treed3d20d087665377ef0f7622e66bd6557fbaebcc9 /labernix/release.nix
parent0182c32769f18926489847bb21636e7b394b5b30 (diff)
parent6b857eebbafba660cc57b19bd11f6484c91f8fd7 (diff)
Subtree-merge labernix into vuizvui.
This is the first step of generalizing the configurations into a big
repository where people can track their NixOS configurations and write
modules.

In the next few steps I'm going to gradually refactor everything in
labernix/ into the main tree and factor out personal stuff into separate
namespaces.

Also, this will involve a license change from APACHE-2.0 to GPL-3.0.
Diffstat (limited to 'labernix/release.nix')
-rw-r--r--labernix/release.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/labernix/release.nix b/labernix/release.nix
new file mode 100644
index 00000000..1edf284a
--- /dev/null
+++ b/labernix/release.nix
@@ -0,0 +1,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;
+    };
+  };
+}