5207e3e22783323a9fbced36949f03ae73fedbb0
.bsp/pants.json in new worktrees
`.bsp/` is gitignored, so a worktree started without the Pants BSP connection file. Metals then found no build server, ran `scala-cli setup-ide` and compiled the whole repo as one Scala 3 project with no third-party dependencies, so go to definition found nothing and semanticdb never appeared. When the primary checkout has `.bsp/pants.json`, `wt` now runs `pants experimental-bsp` in each worktree it adds, in that worktree's devshell and without starting a pantsd. The runner script it writes records the devshell's PATH and the checkout's log path, so it is generated rather than copied from the primary. When direnv cannot load, as when the `.envrc` differs from the primary's, `wt` says what to run instead.
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.9%
HTML
16.3%
Python
7.2%
Shell
4.8%
Emacs Lisp
0.8%