-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathTaskfile.yaml
50 lines (44 loc) · 1.21 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
---
version: "3"
tasks:
default:
silent: true
cmds:
- task: pull
- task: update
- task: upgrade
- task: switch
pull:
desc: Pull the latest changes
silent: true
cmds:
- git pull
update:
desc: Update the Nix channels
silent: true
cmds:
- nix-channel --update
upgrade:
desc: Upgrade Nix packages
silent: true
cmds:
- nix-env -u
switch:
desc: Switch to the new configuration
silent: true
cmds:
- home-manager switch
bootstrap:
desc: Bootstrap the home-manager configuration
silent: true
cmds:
- curl -L https://nixos.org/nix/install | sh
- source $HOME/.nix-profile/etc/profile.d/nix.sh
- export NIX_PATH=${NIX_PATH:+$NIX_PATH:}$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels
- nix-channel --add https://channels.nixos.org/nixpkgs-24.05-darwin nixpkgs
- nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager
- task: update
- nix-shell '<home-manager>' -A install
- task: switch
- echo "$HOME/.nix-profile/bin/zsh" | sudo tee -a /etc/shells
- chsh -s $HOME/.nix-profile/bin/zsh