blob: 13b71aa50fce5358a2cdfa3840907ed507c4b684 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
help:
@just --list
update HOST:
nix flake update
git add -- ./flake.lock
git commit -m "nix: update flake"
just switch "{{HOST}}"
update-nur-packages:
nix flake update nur-packages
sync HOST:
git fetch --all
git stash save
git switch -d origin/main
git stash pop
just switch "{{HOST}}"
switch HOST:
home-manager switch --flake ".#{{HOST}}"
gc:
# TODO: leave the last 3 generations?
# home-manager remove-generations $({ home-manager generations | tail +4 && date -d '-1 month' '+%Y-%m-%d %H:%M : id DELETE ->'; } | sort -r | sed -n '/: id DELETE ->/,$p' | tail +2 | grep -o ': id [0-9]* ->' | awk '{ print $3; }')
home-manager expire-generations '-1 month'
nix profile wipe-history
nix store gc
|