infrastructure/scripts/default.nix

43 lines
639 B
Nix
Raw Permalink Normal View History

{ pkgs, ... }:
let
substitutions = {
inherit (pkgs)
bash
colmena
coreutils
nvd
git
jq
;
2024-04-12 19:53:02 +02:00
attic = pkgs.attic-client;
};
mkShellScript =
name:
(pkgs.substituteAll (
{
inherit name;
src = ./. + "/${name}.sh";
dir = "/bin/";
isExecutable = true;
checkPhase = ''
${pkgs.stdenv.shellDryRun} "$target"
'';
}
// substitutions
));
scripts = [
"check-deployment"
"launch-vm"
2024-02-19 23:14:27 +01:00
"list-nodes"
2024-04-12 19:53:02 +02:00
"push-to-cache"
2024-07-24 12:32:39 +02:00
"push-to-nix-cache"
2024-04-12 19:53:02 +02:00
"cache"
];
in
builtins.map mkShellScript scripts