forked from DGNum/infrastructure
33 lines
515 B
Nix
33 lines
515 B
Nix
{ pkgs, ... }:
|
|
|
|
let
|
|
substitutions = {
|
|
inherit (pkgs)
|
|
bash
|
|
colmena
|
|
coreutils
|
|
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
|