infrastructure/scripts/default.nix
sinavir 19c4176015
All checks were successful
build configuration / build_storage01 (push) Successful in 58s
build configuration / build_web01 (push) Successful in 59s
build configuration / build_compute01 (push) Successful in 1m15s
npins update / npins_update (push) Successful in 47s
fix(check-deployment): fix nvd invocation and diff flag
2024-01-07 10:20:46 +01:00

34 lines
525 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"
"ns-update"
"launch-vm"
# "mk-backup-key"
# "wg-setup"
];
in
builtins.map mkShellScript scripts