Mercurial > code > home > repos > infra
annotate home.py @ 320:11d3bcedb9f0
updates for tofu rebuild; some dead code; start moving tasks into subdirs with their files and templates
author | drewp@bigasterisk.com |
---|---|
date | Fri, 08 Nov 2024 23:16:56 -0800 |
parents | 65e28d2e0cd8 |
children |
rev | line source |
---|---|
110 | 1 from pyinfra import host |
115 | 2 from pyinfra.operations import files, server |
110 | 3 |
289
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
288
diff
changeset
|
4 if host.data.get('drewp_home'): |
110 | 5 # maybe bring sync.py in here too |
6 | |
288 | 7 server.shell(commands=['chsh -s /bin/zsh drewp']) |
110 | 8 files.link(path='/home/drewp/.aptitude/config', target='../own/config/aptitude-config', force=True) |
9 files.link(path='/home/drewp/.config/blender', target='../own/config/blender', force=True) | |
320
11d3bcedb9f0
updates for tofu rebuild; some dead code; start moving tasks into subdirs with their files and templates
drewp@bigasterisk.com
parents:
289
diff
changeset
|
10 files.link(path='/home/drewp/.config/i3', target='../own/config/i3', force=True) |
110 | 11 files.link(path='/home/drewp/.emacs.d', target='own/config/emacs-d', force=True) |
12 files.link(path='/home/drewp/.fonts', target='own/config/fonts', force=True) | |
13 files.link(path='/home/drewp/.fvwm2rc', target='own/config/fvwm2rc', force=True) | |
14 files.link(path='/home/drewp/.hgrc', target='own/config/hgrc', force=True) | |
15 files.link(path='/home/drewp/.kitty', target='own/config/kitty', force=True) | |
16 files.link(path='/home/drewp/.zshrc', target='own/config/zshrc', force=True) | |
17 files.link(path='/home/drewp/bin', target='own/config/bin/', force=True) | |
18 files.link(path='/home/drewp/blenderkit_data', target='own/gfx-lib/blenderkit_data/', force=True) | |
19 | |
20 #drwx------ 3 drewp drewp 4096 Jul 31 15:07 .config/syncthing | |
188 | 21 #npm.rc? |
198 | 22 # run on bang: pnpm server --background start |