b7942277222d921806b22c8098365b9e57f8cae2
.envrc that differs from main's
wt allowed a new worktree's .envrc only when it matched the primary checkout's, and left it blocked otherwise. A branch based on an older main has an older .envrc, so its worktree stayed blocked, `direnv exec` failed, no .bsp/pants.json was written and Metals set up scala-cli instead. The warning saying so scrolled away when a review started Emacs. It now compares with main's .envrc: the same content is allowed as before, and different content is shown as a diff with a y/N prompt before anything else runs. Comparing with main rather than the primary's working copy also stops wt allowing content that was never approved in the primary.
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.8%
HTML
16.3%
Python
7.2%
Shell
4.9%
Emacs Lisp
0.8%