Mercurial > code > home > repos > infra
annotate home.py @ 290:828d3f4da54b
rpi iscsi volumes
author | drewp@bigasterisk.com |
---|---|
date | Sun, 21 Apr 2024 17:09:10 -0700 |
parents | 65e28d2e0cd8 |
children | 11d3bcedb9f0 |
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) | |
10 files.link(path='/home/drewp/.emacs.d', target='own/config/emacs-d', force=True) | |
11 files.link(path='/home/drewp/.fonts', target='own/config/fonts', force=True) | |
12 files.link(path='/home/drewp/.fvwm2rc', target='own/config/fvwm2rc', force=True) | |
13 files.link(path='/home/drewp/.hgrc', target='own/config/hgrc', force=True) | |
14 files.link(path='/home/drewp/.kitty', target='own/config/kitty', force=True) | |
15 files.link(path='/home/drewp/.zshrc', target='own/config/zshrc', force=True) | |
16 files.link(path='/home/drewp/bin', target='own/config/bin/', force=True) | |
17 files.link(path='/home/drewp/blenderkit_data', target='own/gfx-lib/blenderkit_data/', force=True) | |
18 | |
19 #drwx------ 3 drewp drewp 4096 Jul 31 15:07 .config/syncthing | |
188 | 20 #npm.rc? |
198 | 21 # run on bang: pnpm server --background start |