-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
38 lines (28 loc) · 891 Bytes
/
Justfile
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
29
30
31
32
33
34
35
36
37
export HOME_MANAGER_BACKUP_EXT := "bak"
build:
nix build '.#[email protected]'
dry-run: build
DRY_RUN=1 ./result/activate
switch: build
./result/activate
list-generations:
@cd ~/.local/state/nix/profiles && ls --color=always -gG --time-style=long-iso --sort time home-manager-*-link \
| cut -d' ' -f 4- \
| sed -E 's/home-manager-([[:digit:]]*)-link/: id \1/'
# Shows treeview of given folder (also used in generation of README)
treeview arg='.':
#!/bin/sh
cd {{arg}} 1>/dev/null
fd .nix | tree --fromfile --noreport | sed "1s|.*|{{arg}}|"
cd - 1>/dev/null
# Update all dependencies in nvfetcher.toml
nvfetcher:
nix run nixpkgs#nvfetcher
# Update all gems in packages/**
bundix:
#!/bin/sh
for i in packages/*; do
cd $i 1>/dev/null
[ -f Gemfile ] && nix run nixpkgs#bundix -- -l
cd - 1>/dev/null
done