-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
51 lines (42 loc) · 1.03 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
---
version: 3
tasks:
build:
desc: Build NixOS flakes
cmds:
- nixos-rebuild build --flake .#home
diff:
desc: Build & diff against the current system
cmds:
- task: build
- nvd diff /run/current-system result
install:
desc: Install (update) the current system
cmds:
- sudo nixos-rebuild switch --flake .#home
update:
desc: Update Nix flakes
cmds:
- nix flake update
- task: diff
format:
desc: Format Nix files
cmds:
- alejandra .
check:
desc: Check Nix flakes
cmds:
- nix flake check
wsl:build:
desc: Build NixOS home-manager config
cmds:
- nix run nixpkgs#home-manager -- build --flake .#wsl
wsl:diff:
desc: Build & diff against the current home-manager config
cmds:
- task: wsl:build
- nvd diff ~/.local/state/home-manager/gcroots/current-home result
wsl:install:
desc: Install (update) the current home-manager config
cmds:
- nix run nixpkgs#home-manager -- switch --flake .#wsl