This script got promoted to a real repo! See it here: https://github.com/grafted-in/nixops-manager
Last active
January 26, 2017 17:50
-
-
Save 3noch/4ee83fedb56d7aa71d23948e363ca9e2 to your computer and use it in GitHub Desktop.
NixOps wrapper script to use git-managed state files
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assuming you've named the script
manage
, set up a new, tracked deployment like this (paths are relative to your repository root):./manage my-deployment create '<some-derivation.nix>' '<some-other-deriv.nix>'
git add my-deployment.nixops && git commit -m"First deployment"
Use git-crypt to keep the
.nixops
files safe in the repository with this entry in.gitattributes
: