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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
110
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
1 from pyinfra import host
115
8012f6095220 update to current configs
drewp@bigasterisk.com
parents: 110
diff changeset
2 from pyinfra.operations import files, server
110
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
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
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
5 # maybe bring sync.py in here too
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
6
288
drewp@bigasterisk.com
parents: 240
diff changeset
7 server.shell(commands=['chsh -s /bin/zsh drewp'])
110
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
8 files.link(path='/home/drewp/.aptitude/config', target='../own/config/aptitude-config', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
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
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
11 files.link(path='/home/drewp/.emacs.d', target='own/config/emacs-d', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
12 files.link(path='/home/drewp/.fonts', target='own/config/fonts', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
13 files.link(path='/home/drewp/.fvwm2rc', target='own/config/fvwm2rc', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
14 files.link(path='/home/drewp/.hgrc', target='own/config/hgrc', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
15 files.link(path='/home/drewp/.kitty', target='own/config/kitty', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
16 files.link(path='/home/drewp/.zshrc', target='own/config/zshrc', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
17 files.link(path='/home/drewp/bin', target='own/config/bin/', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
18 files.link(path='/home/drewp/blenderkit_data', target='own/gfx-lib/blenderkit_data/', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
19
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
20 #drwx------ 3 drewp drewp 4096 Jul 31 15:07 .config/syncthing
188
087b84e68765 comment
drewp@bigasterisk.com
parents: 146
diff changeset
21 #npm.rc?
198
1329c6f5baef update skaffold, pdm
drewp@bigasterisk.com
parents: 188
diff changeset
22 # run on bang: pnpm server --background start