infrastructure/scripts/default.nix

34 lines
451 B
Nix

{
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