bebeaeb2e10a95cb788d797b0588b90b666d451a
wt sync
gt restack stops at a merge conflict mid-rebase, so wt sync left that worktree half rebased. It now aborts the restack with `gt abort --force` (without --force it waits for a confirmation prompt), leaving the worktree as it was, carries on with the rest, and lists the conflicted worktrees apart from those that failed for other reasons. Restacks run with --no-interactive so a prompt cannot stall the loop.
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
70.7%
HTML
16.3%
Python
7.1%
Shell
5.1%
Emacs Lisp
0.8%