-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.dist.yaml
103 lines (83 loc) · 2.59 KB
/
Taskfile.dist.yaml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# https://taskfile.dev
version: '3'
tasks:
default:
cmds:
- task --list
silent: true
bump:
desc: Update flake inputs and commit the updated lockfile
cmds:
- nix flake update --commit-lock-file
check:
desc: Check the flake for errors
cmds:
- nix flake check --verbose
nixos-rebuild-switch:
desc: Rebuild and switch to the new NixOS configuration
cmds:
- run0 nixos-rebuild switch --verbose
nixos-rebuild-test:
desc: Test the new NixOS configuration without switching
cmds:
- run0 nixos-rebuild test --verbose
nixos-rebuild-build:
desc: Build the new NixOS configuration
cmds:
- run0 nixos-rebuild switch --verbose
list-nixos-history:
desc: Display the history of NixOS system profiles
cmds:
- nix profile history --profile /nix/var/nix/profiles/system
wipe-direnv:
desc: Clear .direnv
cmds:
- rm -rf .direnv
diff-closures:
desc: Show differences between NixOS system profile closures
cmds:
- nix profile diff-closures --profile /nix/var/nix/profiles/system
wipe-nixos-history:
desc: Clear the history of NixOS system profiles
cmds:
- run0 nix profile wipe-history --profile /nix/var/nix/profiles/system
list-home-manager-history:
desc: Display the history of Home Manager profiles
cmds:
- nix profile history --profile ~/.local/state/nix/profiles/home-manager
diff-home-manager-closures:
desc: Show differences between Home Manager profile closures
cmds:
- nix profile diff-closures --profile ~/.local/state/nix/profiles/home-manager
wipe-home-manager-history:
desc: Clear the history of Home Manager profiles
cmds:
- nix profile wipe-history --profile ~/.local/state/nix/profiles/home-manager
gc:
desc: Run garbage collection on the Nix store
cmds:
- nix store gc --verbose --print-build-logs --auto-optimise-store
gc-all:
desc: Wipe NixOS and Home Manager histories, then run garbage collection
cmds:
- task: wipe-nixos-history
- task: wipe-home-manager-history
- task: gc
store-optimise:
desc: Optimize the Nix store
cmds:
- nix store optimise --verbose
clean-firefox:
desc: Remove Firefox-related user data
cmds:
- rm -rf ~/.afirma ~/.java ~/.mozilla
clean-chromium:
desc: Remove Chromium-related user data
cmds:
- rm -rf ~/.config/chromium ~/.cache/chromium
pristine:
desc: Perform a full cleanup (gc-all, clean-firefox, clean-chromium)
cmds:
- task: gc-all
- task: clean-firefox
- task: clean-chromium