summaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorpennae <pennae.git@eno.space>2023-09-26 01:06:15 +0200
committerpennae <pennae.git@eno.space>2023-09-26 01:09:09 +0200
commitc074dab95ffa2fc31a15b6ade1d14009e2087a29 (patch)
tree8f9cede064f199659778f29b8e6d339081c08558 /default.nix
parent6b1fb96a160e3d6500a182c6c31f74cf85bd819f (diff)
downloaddewclaw-c074dab95ffa2fc31a15b6ade1d14009e2087a29.tar.gz
dewclaw-c074dab95ffa2fc31a15b6ade1d14009e2087a29.tar.xz
dewclaw-c074dab95ffa2fc31a15b6ade1d14009e2087a29.zip
combine all scripts into a single environment
this makes it easier to generate a bunch of scripts from a single configuration without having to deal with multiple result links.
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/default.nix b/default.nix
index 52f4000..1c699c2 100644
--- a/default.nix
+++ b/default.nix
@@ -14,6 +14,13 @@ let
};
in
-pkgs.lib.mapAttrs
- (_: dev: dev.build.deploy)
- evaluated.config.openwrt
+pkgs.buildEnv rec {
+ name = "dewclaw-env";
+
+ paths = builtins.attrValues passthru.targets;
+
+ passthru.targets =
+ pkgs.lib.mapAttrs
+ (_: dev: dev.build.deploy)
+ evaluated.config.openwrt;
+}