Add a sops update script

This commit is contained in:
iFargle 2023-08-15 13:19:40 +09:00
parent 3a40842f60
commit cf8817117e
3 changed files with 5 additions and 2 deletions

View file

@ -60,6 +60,8 @@ Repo for nix configuration files
1. To edit a file: cd to `/path/to/nix-files/` and run:
* `nix-shell -p sops --run "sops secrets/secret_file.yml"`
* New shell alias: `sops secrets/secret_file.yml`
2. When you add a new machine, you must update the secrets files encryption.
* Run `sops-update secrets/secrets.yaml` and commit the change.
# Lanzaboote / SecureBoot
* Instructions here - [Link](https://git.sysctl.io/Mirrors/lanzaboote/src/branch/master/docs/QUICK_START.md)

View file

@ -13,7 +13,9 @@
sops-edit() {
nix-shell -p sops --run "sops $1"
}
sops-update() {
nix-shell -p sops --run "sops updatekeys $1"
}
nix-clean-all() {
nix-channel --update
nix-env -u --always

View file

@ -78,7 +78,6 @@
set cursorline
let g:rainbow_active = 1
colorscheme gruvbox
'';
};