Add a sops update script
This commit is contained in:
parent
3a40842f60
commit
cf8817117e
3 changed files with 5 additions and 2 deletions
|
@ -60,6 +60,8 @@ Repo for nix configuration files
|
||||||
1. To edit a file: cd to `/path/to/nix-files/` and run:
|
1. To edit a file: cd to `/path/to/nix-files/` and run:
|
||||||
* `nix-shell -p sops --run "sops secrets/secret_file.yml"`
|
* `nix-shell -p sops --run "sops secrets/secret_file.yml"`
|
||||||
* New shell alias: `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
|
# Lanzaboote / SecureBoot
|
||||||
* Instructions here - [Link](https://git.sysctl.io/Mirrors/lanzaboote/src/branch/master/docs/QUICK_START.md)
|
* Instructions here - [Link](https://git.sysctl.io/Mirrors/lanzaboote/src/branch/master/docs/QUICK_START.md)
|
||||||
|
|
|
@ -13,7 +13,9 @@
|
||||||
sops-edit() {
|
sops-edit() {
|
||||||
nix-shell -p sops --run "sops $1"
|
nix-shell -p sops --run "sops $1"
|
||||||
}
|
}
|
||||||
|
sops-update() {
|
||||||
|
nix-shell -p sops --run "sops updatekeys $1"
|
||||||
|
}
|
||||||
nix-clean-all() {
|
nix-clean-all() {
|
||||||
nix-channel --update
|
nix-channel --update
|
||||||
nix-env -u --always
|
nix-env -u --always
|
||||||
|
|
|
@ -78,7 +78,6 @@
|
||||||
set cursorline
|
set cursorline
|
||||||
let g:rainbow_active = 1
|
let g:rainbow_active = 1
|
||||||
|
|
||||||
|
|
||||||
colorscheme gruvbox
|
colorscheme gruvbox
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue