aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/remote-dev/justfile
blob: db254df87ef44d522309c7c0127630d61c814977 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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