From 4070552a3e593d1a561073f21b55869f384fca11 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 17 Mar 2015 01:20:13 +0100 Subject: 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 --- release.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 release.nix (limited to 'release.nix') 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 ; + +let + genMachine = name: cfg: (import { + system = "x86_64-linux"; + modules = [ cfg ]; + }).config.system.build.toplevel; + +in { + machines = mapAttrs genMachine (import ./default.nix).machines; +} -- cgit 1.4.1