-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
45 lines (31 loc) · 1.16 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
bootstrap:
nix --extra-experimental-features nix-command --extra-experimental-features flakes run 'github:nix-community/disko#disko-install' -- --flake github:AsterisMono/flake#stellarbase --disk main /dev/vda
build:
nh os build .
deploy:
nh os switch .
deploy-nonh:
nixos-rebuild switch --flake . --use-remote-sudo
deploy-buildforme:
nh os switch . -- -j0 --builders 'ssh://cmiki@celestia'
debug:
nixos-rebuild switch --flake . --use-remote-sudo --show-trace --verbose
dryrun:
nixos-rebuild dry-run --flake . --use-remote-sudo
update:
nix flake update
history:
nix profile history --profile /nix/var/nix/profiles/system
force-deploy:
nixos-rebuild switch --flake . --use-remote-sudo --option eval-cache false
darwin-bootstrap:
nix --extra-experimental-features nix-command --extra-experimental-features flakes run nix-darwin -- switch --flake .
darwin-deploy:
darwin-rebuild switch --flake .
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
explore:
nix run github:bluskript/nix-inspect -- -p .