aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nix/justfile
blob: 19e4a9b7d99cefd913cb2309c7bd6cbc2b7419a1 (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/nix.

# 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