flake: fix 'nix flake check'

This commit is contained in:
Pierre Bourdon 2024-07-07 18:02:55 +02:00
parent 8dc7ee9864
commit 0c68a23275
Signed by: delroth
GPG key ID: 6FB80DCD84DA0F1C

View file

@ -61,18 +61,19 @@
${lib.getExe terraform} plan
'');
};
# nix run ".#destroy"
destroy = {
type = "app";
program = toString (pkgs.writers.writeBash "destroy" ''
set -eo pipefail
ln -snf ${terraformCfg} config.tf.json
${lib.getExe terraform} init
${lib.getExe terraform} destroy
'');
# nix run ".#destroy"
destroy = {
type = "app";
program = toString (pkgs.writers.writeBash "destroy" ''
set -eo pipefail
ln -snf ${terraformCfg} config.tf.json
${lib.getExe terraform} init
${lib.getExe terraform} destroy
'');
};
default = self.apps.${system}.apply;
};
apps.${system}.default = self.apps.${system}.apply;
devShells.${system}.default = pkgs.mkShell {
packages = [