Add rollback on failure

This commit is contained in:
Tim Schubert 2021-01-16 18:57:59 +01:00
parent e19bc8eddb
commit 9a5f573be1
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
# nix configuration
Use at your own risk.
## Deploying
The `./deploy` script generates a NixOS configuration that pins the current git `HEAD` of this project and copies the resulting `configuration.nix` to the destionation host. Then it tests the new confiurations and rolls back if it fails.
## TODO
- Use `nix-copy-closure`?