mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
refactor(editors): standardize on helix, keep neovim as backup (#345)
This commit is contained in:
1 parent
1a10e65221
commit
9c44117f75
8 files changed
+26
-29
No files matched your search
@@ -70,14 +70,18 @@ Changing only a secret's value is steps 1, 2, and the deploy.
|
||||
## 3. The private repository
|
||||
|
||||
The agenix operations run against `~/codes/nix-secrets`. Their single source is
|
||||
[`secrets/Justfile`](../../../secrets/Justfile), which pins the identity and option order; run them
|
||||
from this repository's root and keep each path identical to its key in `secrets.nix`:
|
||||
[`secrets/Justfile`](../../../secrets/Justfile), which pins the identity, option order, and
|
||||
`$EDITOR`; run them from this repository's root and keep each path identical to its key in
|
||||
`secrets.nix`:
|
||||
|
||||
```bash
|
||||
just -f secrets/Justfile edit ./desktop/xxx.age # edit or create (interactive)
|
||||
just -f secrets/Justfile rekey # re-encrypt after a recipient change
|
||||
```
|
||||
|
||||
`edit` passes `EDITOR=hx` to the root `agenix` process, because `sudo` resets the environment and
|
||||
the invoking user's `EDITOR` would not reach it; do not add `sudo -E` or set `EDITOR` yourself.
|
||||
|
||||
The repository keeps a single amended commit: `git commit --amend -a --no-edit`,
|
||||
`git reflog expire --expire-unreachable=now --all`, `git gc --prune=now`, then force push. Treat
|
||||
amend and force push as impactful and get authorization first.
|
||||
|
||||
Reference in new issue
Block a user