-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
37 lines (35 loc) · 911 Bytes
/
Taskfile.yml
File metadata and controls
37 lines (35 loc) · 911 Bytes
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
# https://taskfile.dev
version: '3'
tasks:
build:
desc: Build the NixOS configuration for the current host
cmds:
- nixos-rebuild build --flake .
lint:
desc: Lint the files
cmds:
- bash -c "shopt -s globstar && nixfmt **/*.nix"
switch:
desc: Switch to the NixOS configuration for the current host
cmds:
- sudo nixos-rebuild switch --flake .
boot:
desc: Set new configuration for next boot
cmds:
- sudo nixos-rebuild boot --flake .
update:
desc: Update dependencies and lock file
cmds:
- nix flake update
optimize:
desc: Optimize the nix store
cmds:
- sudo nix-store --optimize
gc:
desc: Aggressive GC of the nix store (will delete all unused generations)
cmds:
- sudo nix-collect-garbage -d
repair:
desc: Repair the nix store
cmds:
- sudo nix-store --verify --check-contents --repair