-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
66 lines (56 loc) · 1.4 KB
/
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
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
version: "3"
tasks:
update:
cmds:
- nix flake update
- task: nixos-rebuild
vars:
command: build
host: adama
- cachix push esselius ./result
darwin:build:
requires:
vars:
- host
cmd: nix build .#darwinConfigurations.{{.host}}.config.system.build.toplevel --no-link -Lv
darwin:switch:
cmd: darwin-rebuild switch --flake . {{.CLI_ARGS}}
home:build:
requires:
vars:
- user
- host
cmd: nix build .#homeConfigurations.{{.user}}@{{.host}}.config.home.activationPackage --no-link -Lv
home:switch:
cmd: home-manager switch --flake .
nixos-rebuild:
requires:
vars:
- command
- host
cmd: nixos-rebuild {{.command}} --flake .#{{.host}} {{.args}}
nixos:build:
requires:
vars:
- host
cmd: nix build .#nixosConfigurations.{{.host}}.config.system.build.toplevel --no-link -Lv {{.CLI_ARGS}}
nixos:switch:
requires:
vars:
- host
cmd:
task: nixos-rebuild
vars:
command: switch
args: --fast --use-remote-sudo --target-host {{.host}} {{.CLI_ARGS}}
nixos:sd:
requires:
vars:
- host
cmds:
- nix build .#nixosConfigurations.{{.host}}.config.system.build.sdImage
- unzstd result/sd-image/nixos-sd-image-*-linux.img.zst -o sd.img
fmt:
cmds:
- statix fix
- nixpkgs-fmt .