infrastructure/scripts/default.nix
Tom Hubrecht c2616ce4f5 modules/dgn-dns: init
Also deploy a DNS server on compute01
2023-07-21 00:37:05 +02:00

30 lines
467 B
Nix

{ pkgs, ... }:
let
substitutions = {
inherit (pkgs)
bash
colmena
coreutils
git;
};
mkShellScript = name: (pkgs.substituteAll ({
inherit name;
src = ./. + "/${name}.sh";
dir = "/bin/";
isExecutable = true;
checkPhase = ''
${pkgs.stdenv.shellDryRun} "$target"
'';
} // substitutions));
scripts = [
"ns-update"
# "mk-backup-key"
# "wg-setup"
];
in
builtins.map mkShellScript scripts