forked from the-distro/infra
flake: fix 'nix flake check'
This commit is contained in:
parent
8dc7ee9864
commit
0c68a23275
21
flake.nix
21
flake.nix
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in a new issue