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 ${lib.getExe terraform} plan
''); '');
}; };
# nix run ".#destroy" # nix run ".#destroy"
destroy = { destroy = {
type = "app"; type = "app";
program = toString (pkgs.writers.writeBash "destroy" '' program = toString (pkgs.writers.writeBash "destroy" ''
set -eo pipefail set -eo pipefail
ln -snf ${terraformCfg} config.tf.json ln -snf ${terraformCfg} config.tf.json
${lib.getExe terraform} init ${lib.getExe terraform} init
${lib.getExe terraform} destroy ${lib.getExe terraform} destroy
''); '');
}; };
default = self.apps.${system}.apply;
}; };
apps.${system}.default = self.apps.${system}.apply;
devShells.${system}.default = pkgs.mkShell { devShells.${system}.default = pkgs.mkShell {
packages = [ packages = [