-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
37 lines (25 loc) · 782 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
default: update deploy
switch:
@sudo nixos-rebuild --flake .# switch -v
test:
@sudo nixos-rebuild --flake .# test -v
boot:
@sudo nixos-rebuild --flake .# boot -v
dry:
@sudo nixos-rebuild --flake .# dry-activate -v
gc:
@nix-collect-garbage --delete-older-than 7d
gc-full:
@nix-collect-garbage --delete-old
update:
@nix flake update
history:
@nix profile diff-closures --profile /nix/var/nix/profiles/system
preview:
@nixos-rebuild --flake .# build -v && nvd diff /run/current-system ./result
wat OPTION HOST=`uname -n`:
@nix eval ".#nixosConfigurations.{{HOST}}.config.{{OPTION}}"
deploy +TARGETS=".#":
@deploy --targets {{TARGETS}} -s -k -- -v --impure
eval HOST=`uname -n`:
@nom build .#nixosConfigurations.{{HOST}}.config.system.build.toplevel