about summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-03-17 01:20:13 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-03-17 01:20:13 +0100
commit4070552a3e593d1a561073f21b55869f384fca11 (patch)
tree0788c3f561ba882db5a1985a4ed354695ccdc50f /release.nix
parentc3fb4c2600b16f2b38e0d5a2eec5dd0a9bf79387 (diff)
default.nix: Simplify/split up into release.nix.
Unfortunately, using builtins.readDir isn't very good idea here, because
all file references from expression files found via readDir will have
imports relative to the Nix store.

We can only work around it if we copy the whole source tree into the
store, but for the sake of simplicity it's also better if we use
explicit imports.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'release.nix')
-rw-r--r--release.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/release.nix b/release.nix
new file mode 100644
index 00000000..33aff057
--- /dev/null
+++ b/release.nix
@@ -0,0 +1,11 @@
+with import <nixpkgs/lib>;
+
+let
+  genMachine = name: cfg: (import <nixpkgs/nixos/lib/eval-config.nix> {
+    system = "x86_64-linux";
+    modules = [ cfg ];
+  }).config.system.build.toplevel;
+
+in {
+  machines = mapAttrs genMachine (import ./default.nix).machines;
+}