diff options
| author | 2026-05-14 11:25:43 +0100 | |
|---|---|---|
| committer | 2026-05-14 11:25:43 +0100 | |
| commit | 78630287855397723fd5d81a7995c3eea4b25c12 (patch) | |
| tree | 849d85573e9e54c96e520658462797ee75a48c15 /remote-dev/justfile | |
| parent | 89829b5beaad70aa58cd566bd975aafcfe8d1f8f (diff) | |
| download | dotfiles-78630287855397723fd5d81a7995c3eea4b25c12.tar.gz dotfiles-78630287855397723fd5d81a7995c3eea4b25c12.tar.bz2 dotfiles-78630287855397723fd5d81a7995c3eea4b25c12.zip | |
feat(remote-dev): add justfile with update/pull/switch/gc recipes
Wraps the bootstrap-day-2 incantations so you don't have to remember
`home-manager switch --impure --flake '.#vm' -b backup` and its zsh
quoting gotcha. Recipes:
- `just update` — pull + switch (the everyday one)
- `just pull` — config-only changes, no nix rebuild
- `just switch` — rebuild HM from the current checkout
- `just gc` — expire HM generations >7d and gc the nix store
README updated to use these.
Diffstat (limited to 'remote-dev/justfile')
| -rw-r--r-- | remote-dev/justfile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/remote-dev/justfile b/remote-dev/justfile new file mode 100644 index 0000000..db254df --- /dev/null +++ b/remote-dev/justfile @@ -0,0 +1,21 @@ +# Recipes for the remote-dev VM. Run from ~/.local/share/dotfiles/remote-dev. + +# Show available recipes (default) +default: + @just --list + +# Pull latest dotfiles and rebuild Home-Manager profile +update: pull switch + +# Pull latest dotfiles only (config-only changes, no nix rebuild) +pull: + git -C {{ justfile_directory() }}/.. pull --ff-only + +# Rebuild Home-Manager profile from the current checkout (no pull) +switch: + home-manager switch --impure --flake '{{ justfile_directory() }}#vm' -b backup + +# Garbage-collect old home-manager generations and nix store +gc: + home-manager expire-generations '-7 days' + nix-collect-garbage -d |
