-
Notifications
You must be signed in to change notification settings - Fork 4
/
Taskfile.yaml
40 lines (36 loc) · 953 Bytes
/
Taskfile.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
version: "3"
tasks:
build:
aliases:
- b
vars:
HOST: "{{ .Env.hostname }}"
cmds:
- |
{{ if eq OS "darwin" }}
nix run nix-darwin -- build --flake .#{{ .HOST }} {{.CLI_ARGS}}
{{ else }}
sudo nixos-rebuild build --flake .#{{ .HOST }} {{.CLI_ARGS}}
{{end}}
switch:
aliases:
- s
vars:
HOST: "{{ .Env.hostname }}"
cmds:
- |
{{ if eq OS "darwin" }}
nix run nix-darwin -- switch --flake .#{{ .HOST }} {{.CLI_ARGS}}
{{ else }}
sudo nixos-rebuild switch --flake .#{{ .HOST }} {{.CLI_ARGS}}
{{end}}
gc:
cmds:
- sudo nix-collect-garbage --delete-older-than 7d
- sudo nix store optimise
list-project-files:
cmds:
- bun run {{.ROOT_DIR}}/scripts/list-project-files.ts {{.CLI_ARGS}}
create-big-file:
cmds:
- bun run {{.ROOT_DIR}}/scripts/create-big-file.ts {{.CLI_ARGS}}