infrastructure/scripts/default.nix
Tom Hubrecht 3ad40c734f
All checks were successful
lint / check (push) Successful in 25s
build configuration / build_vault01 (push) Successful in 1m0s
build configuration / build_web02 (push) Successful in 59s
build configuration / build_storage01 (push) Successful in 1m3s
build configuration / build_compute01 (push) Successful in 1m6s
build configuration / build_web01 (push) Successful in 1m24s
feat(shell): Add list-nodes script
2024-02-19 23:14:27 +01:00

38 lines
552 B
Nix

{ pkgs, ... }:
let
substitutions = {
inherit (pkgs)
bash
colmena
coreutils
nvd
git
jq
;
};
mkShellScript =
name:
(pkgs.substituteAll (
{
inherit name;
src = ./. + "/${name}.sh";
dir = "/bin/";
isExecutable = true;
checkPhase = ''
${pkgs.stdenv.shellDryRun} "$target"
'';
}
// substitutions
));
scripts = [
"check-deployment"
"launch-vm"
"list-nodes"
];
in
builtins.map mkShellScript scripts