-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjustfile
43 lines (34 loc) · 764 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
38
39
40
41
42
43
default:
@just --list --unsorted
host := `uname -n`
user := `whoami`
alias bs := build_switch
alias hs := home_switch
alias u := update
alias uc := update_commit
# OLD: nixos-rebuild switch --flake .#{{host}}
# Build nixos
build_switch:
nh os switch . -H {{host}}
# OLD: home-manager switch --flake .#{{user}}@{{host}}
# Build home-manager
home_switch:
nh home switch . -c {{user}}@{{host}}
# Show neovim flake output
show:
nix flake show
# Commit flake.lock
commit_lock:
git add flake.lock
git commit -m "chore: update flake"
# Update flake
update:
nix flake update
# Update flake and commit flake.lock
update_commit: update commit_lock
# Check flake
check:
nix flake check
# Clean
clean:
nh clean all --keep-since 7d