infrastructure/scripts/default.nix

35 lines
451 B
Nix
Raw Normal View History

{
lib,
writeShellApplication,
# Dependencies
colmena,
jq,
nvd,
...
}:
let
inherit (lib) mapAttrsToList;
scripts = {
cache-node = [ colmena ];
check-deployment = [
colmena
jq
nvd
];
launch-vm = [ colmena ];
list-nodes = [ jq ];
};
in
mapAttrsToList (
name: runtimeInputs:
writeShellApplication {
inherit name runtimeInputs;
text = builtins.readFile ./${name}.sh;
}
) scripts