-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.yml
More file actions
28 lines (25 loc) · 797 Bytes
/
Copy pathtaskfile.yml
File metadata and controls
28 lines (25 loc) · 797 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
version: '3'
tasks:
rebuild:
desc: "rebuilds the configuration if `init` was launched at least once."
preconditions:
- nix --version
cmd: |
nix flake update
sudo darwin-rebuild switch --flake .
sudo chown -R 501:20 "/Users/pawel/.local/"
init:
desc: "build & apply the system configuration."
preconditions:
- nix --version
cmd: |
nix build .#darwinConfigurations.mb.system \
--extra-experimental-features 'nix-command flakes' && \
./result/sw/bin/darwin-rebuild switch --flake .#mb
home-manager:
desc: "build & apply the home-manager configuration."
preconditions:
- nix --version
cmd: |
nix run home-manager/master -- switch --flake .#pawel
sudo chown -R 501:20 "/Users/pawel/.local/"