-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfull.yaml
More file actions
216 lines (192 loc) · 4.68 KB
/
Copy pathfull.yaml
File metadata and controls
216 lines (192 loc) · 4.68 KB
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# Full-Featured Heimdal Configuration
heimdal:
version: "1"
repo: "git@github.com:yourusername/dotfiles.git" # Optional: can be specified or stored in state
# Global ignore patterns (applied to all profiles, case-insensitive)
ignore:
- .git
- .gitignore
- heimdal.yaml
- "*.md"
- LICENSE
- .DS_Store
# Global package definitions (available to all profiles)
packages:
# Common packages (manually installed via package managers)
common:
- git
- vim
- tmux
- curl
- wget
- tree
- fzf
- ripgrep
- bat
- fd
- zoxide
# Homebrew packages (macOS)
homebrew:
- neovim
- gh
- node
- python
# Homebrew casks (macOS GUI apps)
homebrew_casks:
- iterm2
- visual-studio-code
- docker
- slack
- firefox
# Mac App Store (requires mas-cli)
# Format: { "id": <number>, "name": "<app-name>" }
mas:
- { "id": 497799835, "name": "Xcode" }
- { "id": 1352778147, "name": "Bitwarden" }
# APT packages (Debian/Ubuntu)
apt:
- build-essential
- python3-pip
- python3-venv
# DNF packages (Fedora/RHEL/CentOS)
dnf:
- gcc
- make
- python3-devel
# Pacman packages (Arch/Manjaro)
pacman:
- base-devel
- python-pip
# APK packages (Alpine)
apk:
- build-base
- python3
# History tracking configuration (optional)
history:
enabled: true
sync: true
max_age_days: 90
# Global hooks (run for all profiles)
hooks:
post_apply:
- command: "echo 'Setup complete!'"
description: "Success message"
pre_sync:
- command: "git status"
description: "Check repo status before sync"
# Machine profiles
profiles:
# Base profile - uses stow-walk mode with tree-folding
base:
# Empty dotfiles list triggers GNU Stow-style walk with tree-folding:
# - If ~/.config doesn't exist, creates ~/.config -> dotfiles/.config symlink
# - If ~/.config exists, recurses and symlinks subdirectories individually
# - This preserves untracked entries in ~/.config (VSCode, Raycast, etc.)
dotfiles: []
hooks:
post_apply:
- command: "echo 'Heimdal setup complete!'"
description: "Success message"
pre_sync:
# Simple hook (just a command string)
- "git status"
# Work profile - explicit dotfile mappings with conditionals
work:
extends: base
dotfiles:
# Simple paths (source relative to dotfiles dir, target is ~/source)
- .vimrc
- .tmux.conf
- .zshrc
# Explicit source/target mappings
- source: vim/vimrc
target: ~/.vimrc
- source: zsh/zshrc
target: ~/.zshrc
# Conditional mappings (platform-specific)
- source: .config/alacritty
target: ~/.config/alacritty
when:
os: [macos, linux]
- source: .config/wezterm
target: ~/.config/wezterm
when:
profile: [work, personal]
hostname: "work-*"
# Work-specific configs
- .aws/config
- .kube/config
# Profile-specific packages (merged with global)
packages:
homebrew:
- kubectl
- aws-cli
- terraform
- docker-compose
homebrew_casks:
- postman
- zoom
# Profile-specific ignore patterns (in addition to global)
ignore:
- "*.swp"
- "*.swo"
- "*.tmp"
# Profile-specific hooks
hooks:
post_apply:
- command: "brew update && brew upgrade"
description: "Update Homebrew"
# Personal profile with tree-folding and personal apps
personal:
# Tree-folding preserves untracked ~/.config entries
dotfiles: []
packages:
homebrew:
- spotify
homebrew_casks:
- discord
- steam
# Personal desktop (Linux)
personal-desktop:
extends: base
packages:
apt:
- steam
- gimp
homebrew_casks:
- spotify
- discord
hooks:
post_apply:
- command: "sudo apt-get update && sudo apt-get upgrade -y"
description: "Update APT packages"
# Server profile - minimal (no GUI apps)
server:
dotfiles:
- .bashrc
- .vimrc
- .tmux.conf
- .ssh/config
packages:
common:
- git
- vim
- tmux
- htop
- ncdu
hooks:
post_apply:
- command: "sudo systemctl enable ssh"
description: "Enable SSH service"
# Templates with variable substitution (optional)
templates:
- src: templates/gitconfig.j2
dest: ~/.gitconfig.local
vars:
email: "user@example.com"
name: "Your Name"
- src: gitconfig.template
dest: ~/.gitconfig
vars:
email: "you@example.com"
name: "Your Name"