generated from juspay/nixos-unified-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
31 lines (22 loc) · 753 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
switch: check fmt
darwin-rebuild switch --flake .
build: check fmt
darwin-rebuild build --flake .
rollback:
darwin-rebuild --rollback
# setup: check fmt
# nix build .#darwinConfigurations.{{host}}.system --extra-experimental-features nix-command --extra-experimental-features flakes
update:
nix flake update
history:
nix profile history --profile /nix/var/nix/profiles/system
gc:
sudo nix profile wipe-history --profile /nix/var/nix/profiles/system
sudo nix store gc
check:
nix flake check --extra-experimental-features nix-command --extra-experimental-features flakes
fmt:
# format the nix files in this repo
nix fmt --extra-experimental-features nix-command --extra-experimental-features flakes
clean:
rm -rf result