67eb18c890cc65b9f8ec1b04227dba6c9e14a96f
wt sync from the primary checkout
In a worktree, `gt sync` deletes a merged current branch by first switching to main, which git refuses while the primary has main checked out. `wt sync` now runs `gt sync` in the primary, which leaves a merged branch checked out in a worktree alone. Worktrees whose PR is merged are no longer restacked. They stay until removed with `wt rm`, so a session in one can still be resumed. The merged PRs are read from gt's `.graphite_pr_info` cache, which `gt sync` has just refreshed; gt has no command that lists them.
config-manager
./config-manager is a module that contains a script to make usage of this flake easier.
To install it
- first add the module to the nixOS system connfiguration
- set
config-manager.flakePath = <path to this flake> - run
nixos-rebuild switch --flake .#<configuration>after thatcmwill be available on$PATH.
Secrets
Secrets are managed by agenix (https://github.com/ryantm/agenix).
Creating new secrets
-
Update
secrets/secrets.nixwith the new secret. -
When inside
./secrets:
EDITOR=vim agenix -e "some-secret.age"
This will create a new secret. To view its content one can do:
EDITOR=vim agenix -d "some-secret.age" -i ~/.ssh/alex.pinwheel
Or use some other SSH key that is has been used to key the secret.
Test VM
Build the test VM with the command:
cm --build-test-vm
and test it with:
cm --run-test-vm
Languages
Nix
71%
HTML
16.4%
Python
7.2%
Shell
4.6%
Emacs Lisp
0.8%