2023-07-21 00:37:05 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
substitutions = {
|
|
|
|
inherit (pkgs)
|
|
|
|
bash
|
|
|
|
colmena
|
|
|
|
coreutils
|
2023-10-03 01:07:18 +02:00
|
|
|
git
|
|
|
|
jq;
|
2023-07-21 00:37:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
mkShellScript = name: (pkgs.substituteAll ({
|
|
|
|
inherit name;
|
|
|
|
src = ./. + "/${name}.sh";
|
|
|
|
dir = "/bin/";
|
|
|
|
isExecutable = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${pkgs.stdenv.shellDryRun} "$target"
|
|
|
|
'';
|
|
|
|
} // substitutions));
|
|
|
|
|
|
|
|
scripts = [
|
|
|
|
"ns-update"
|
2023-10-03 01:07:18 +02:00
|
|
|
"launch-vm"
|
2023-07-21 00:37:05 +02:00
|
|
|
# "mk-backup-key"
|
|
|
|
# "wg-setup"
|
|
|
|
];
|
|
|
|
in
|
|
|
|
|
|
|
|
builtins.map mkShellScript scripts
|