-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
76 lines (55 loc) · 1.66 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
############################################################################
#
# Nix commands related to the local machine
#
############################################################################
# Default recipe to display help information
default:
@just --list
# List all recipes
list:
@just --list
# Run ci for all files using pre-commit
ci-all:
pre-commit run --all-files
update:
nix flake update
update-nix-vim:
(cd ~/git/nix-vim && git fetch && git rebase) || true
nix flake lock --update-input nixvim
just nh
update-nix-secrets:
(cd ~/git/nix-secrets && git fetch && git rebase) || true
nix flake lock --update-input nix-secrets
just nh
nh:
nh os switch
nh-update:
nh os switch -u
nh-remote-update:
nh os switch -u -- -j0
nh-remote:
nh os switch -- -j0
thor:
nixos-rebuild switch --flake .#thor --use-remote-sudo
debugThor:
nixos-rebuild switch --flake .#thor --use-remote-sudo --show-trace --verbose
freya:
nixos-rebuild switch --flake .#freya --use-remote-sudo
debugFreya:
nixos-rebuild switch --flake .#freya --use-remote-sudo --show-trace --verbose
mjolnir:
nixos-rebuild switch --flake .#mjolnir --use-remote-sudo
debugmjolnir:
nixos-rebuild switch --flake .#mjolnir --use-remote-sudo --show-trace --verbose
odin:
nixos-rebuild switch --flake .#odin --use-remote-sudo
debugOdin:
nixos-rebuild switch --flake .#odin --use-remote-sudo --show-trace --verbose
history:
nix profile history --profile /nix/var/nix/profiles/system
gc:
# remove all generations older than 7 days
sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --older-than 7d
# garbage collect all unused nix store entries
sudo nix store gc --debug