Prerequisite: Nix or install Terraform by hand.
$ nix run nixpkgs#terraform init
[...]
$ nix run nixpkgs#terraform plan
[...]
I hereby claim:
To claim this, I am signing this object:
Was asked for a review of the mergeful
. These are my findings.
I don't think I'll look into the correctness of the code too much; I'll probably make more general observations, but who knows. What follows is an
#!/usr/bin/env python3.7 | |
""" | |
Bootstrap or update a single user Nix installation. | |
Caveat emptor: may eat your hard-drive. Read the script first and check that you | |
like what it does. | |
(C) Laurens Duijvesteijn 2019. Licensed under the MPL 2.0 available from | |
https://www.mozilla.org/en-US/MPL/2.0/ |
function start_agent { | |
echo "Initialising new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo Succeeded | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null | |
/usr/bin/ssh-add | |
} | |
if [ -f "${SSH_ENV}" ]; then |