infrastructure/scripts/default.nix
Tom Hubrecht 6fbda40e5e
All checks were successful
Build all the nodes / bridge01 (push) Successful in 1m17s
Build all the nodes / geo01 (push) Successful in 1m16s
Build all the nodes / geo02 (push) Successful in 1m22s
Build all the nodes / compute01 (push) Successful in 1m38s
Build all the nodes / storage01 (push) Successful in 1m13s
Build all the nodes / rescue01 (push) Successful in 1m22s
Build all the nodes / vault01 (push) Successful in 1m20s
Run pre-commit on all files / check (push) Successful in 24s
Build all the nodes / web01 (push) Successful in 1m46s
Build all the nodes / web02 (push) Successful in 1m6s
Build all the nodes / web03 (push) Successful in 1m9s
feat(scripts): Unify behaviour and improve generation
2024-11-14 22:01:58 +01:00

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