-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
124 lines (85 loc) · 3.92 KB
/
justfile
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
set dotenv-load := true
set shell := ["/bin/bash", "-cu"]
task_prelude := env_var_or_default('DOTFILES_TASK_PRELUDE', '')
playbook_selection := if os() == "macos" { ".macos" } else { ".nix" }
default:
@just --choose
install-requirements:
{{ task_prelude }} ansible-galaxy install -r requirements.yml
{{ task_prelude }} ansible-galaxy collection install -r requirements.yml
init-submodules:
git submodule update --recursive --init
update-submodules:
git submodule update --recursive --remote
reset-submodules:
git submodule foreach --recursive git reset --hard
devbox:
{{ task_prelude }} ansible-playbook playbooks/devbox.yml --tags "core"
devbox-all:
{{ task_prelude }} ansible-playbook playbooks/devbox.yml
baremetal:
{{ task_prelude }} ansible-playbook playbooks/baremetal.yml
work tag:
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "{{ tag }}"
dot-all:
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml
tools: update-submodules
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "tools"
setup:
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "setup"
nix:
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "nix"
dot: update-submodules
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "git,fzf,neovim-config,neovim-config-clean,navi,direnv,scripts,bookmarks,bash,nushell,zsh,zellij,yazi"
env: update-submodules
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "env"
git:
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "git"
shell: update-submodules
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "navi,scripts,bookmarks,bash,nushell,zsh,tcsh"
zsh: update-submodules
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "zsh"
neovim: update-submodules
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "neovim-config"
neovim-clean: update-submodules
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "neovim-config-clean"
helix: update-submodules
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "helix-config"
zellij: update-submodules
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "zellij"
yazi: update-submodules
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "yazi"
binscripts: update-submodules
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "scripts"
cpp: update-submodules
{{ task_prelude }} ansible-playbook playbooks/dotfiles.yml --tags "cpp" --ask-become-pass
update-rust-tools:
{{ task_prelude }} cargo install-update -a
install-rust-tools:
{{ task_prelude }} ansible-playbook playbooks/baremetal.yml --tags "rust-tools"
add-nix-devbox-repo:
git remote add -f devbox-nix [email protected]:pbonh/devbox.nix.git
git subtree add --prefix roles/devbox devbox-nix main --squash
add-nix-baremetal-repo:
git remote add -f baremetal-nix [email protected]:pbonh/baremetal.nix.git
git subtree add --prefix roles/baremetal baremetal-nix main --squash
add-nix-dot-repo:
git remote add -f dotfiles-nix [email protected]:pbonh/dotfiles.nix.git
git subtree add --prefix roles/dotfiles dotfiles-nix main --squash
pull-nix-dot-repo:
git fetch dotfiles-nix main && git subtree pull --prefix roles/dotfiles dotfiles-nix main --squash
pull-nix-devbox-repo:
git fetch devbox-nix main && git subtree pull --prefix roles/devbox devbox-nix main --squash
pull-nix-baremetal-repo:
git fetch baremetal-nix main && git subtree pull --prefix roles/baremetal baremetal-nix main --squash
push-nix-devbox-repo:
git subtree push --prefix=roles/devbox devbox-nix main
push-nix-baremetal-repo:
git subtree push --prefix=roles/baremetal baremetal-nix main
push-nix-dot-repo:
git subtree push --prefix=roles/dotfiles dotfiles-nix main
bluefin:
./scripts/bootstrap_gitssh.sh
./scripts/bootstrap_bluefin.sh
bluefin-act-runner:
distrobox-host-exec act