aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/remote-dev/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'remote-dev/justfile')
-rw-r--r--remote-dev/justfile21
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