diff options
Diffstat (limited to 'users/wpcarro')
-rw-r--r-- | users/wpcarro/nixos/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/users/wpcarro/nixos/default.nix b/users/wpcarro/nixos/default.nix index de8bb028f1a2..f88f0983c9ec 100644 --- a/users/wpcarro/nixos/default.nix +++ b/users/wpcarro/nixos/default.nix @@ -21,10 +21,10 @@ in ${pkgs.terraform}/bin/terraform -chdir="$TF_STATE_DIR" init fi - # function cleanup() { - # rm -f "$TF_STATE_DIR/$(basename $STORE_PATH)" - # } - # trap cleanup EXIT + function cleanup() { + rm -f "$TF_STATE_DIR/$(basename $STORE_PATH)" + } + trap cleanup EXIT ${pkgs.terraform}/bin/terraform -chdir="$TF_STATE_DIR" apply ''; |