-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
43 lines (41 loc) · 1.06 KB
/
Taskfile.yml
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
---
version: "3"
tasks:
build:
cmds:
- darwin-rebuild build --flake .# --show-trace
activate:
cmds:
- darwin-rebuild activate --flake .# --show-trace
switch:
cmds:
- darwin-rebuild switch --flake .# --show-trace
history:
cmds:
- echo 'System Profile History'
- nix profile history --profile /nix/var/nix/profiles/system
- echo 'User Profile History'
- nix profile history
update:
cmds:
- nix flake update
gc:
cmds:
# remove all generations older than 2 days
- sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --older-than 2d
- nix profile wipe-history --older-than 2d
- nix store gc --debug
gc-aggressive:
cmds:
# remove all old generations
- sudo nix profile wipe-history --profile /nix/var/nix/profiles/system
- nix profile wipe-history
# Destroy all the dead symlinks in the nix store
- nix-collect-garbage -d
- nix store gc --debug
fmt:
cmds:
- nix fmt
clean:
cmds:
- rm -rf result