dewclaw/default.nix
pennae c074dab95f 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.
2023-09-26 01:09:09 +02:00

26 lines
438 B
Nix

{ pkgs ? import <nixpkgs> { config = {}; overlays = []; }
, configuration
}:
let
evaluated = pkgs.lib.evalModules {
modules = [
./openwrt
configuration
];
specialArgs = {
inherit pkgs;
};
};
in
pkgs.buildEnv rec {
name = "dewclaw-env";
paths = builtins.attrValues passthru.targets;
passthru.targets =
pkgs.lib.mapAttrs
(_: dev: dev.build.deploy)
evaluated.config.openwrt;
}