annotate home.py @ 146:2065998876e4

add host 'ditto'
author drewp@bigasterisk.com
date Sat, 11 Mar 2023 12:17:56 -0800
parents 8012f6095220
children 087b84e68765
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
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
4 if host.name in [
115
8012f6095220 update to current configs
drewp@bigasterisk.com
parents: 110
diff changeset
5 'dash',
110
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
6 'slash',
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
7 'bang',
146
2065998876e4 add host 'ditto'
drewp@bigasterisk.com
parents: 115
diff changeset
8 'ditto',
110
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
9 ]:
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
10 # maybe bring sync.py in here too
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
11
115
8012f6095220 update to current configs
drewp@bigasterisk.com
parents: 110
diff changeset
12 server.shell(['chsh -s /bin/zsh drewp'])
110
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
13 files.link(path='/home/drewp/.aptitude/config', target='../own/config/aptitude-config', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
14 files.link(path='/home/drewp/.config/blender', target='../own/config/blender', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
15 files.link(path='/home/drewp/.emacs.d', target='own/config/emacs-d', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
16 files.link(path='/home/drewp/.fonts', target='own/config/fonts', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
17 files.link(path='/home/drewp/.fvwm2rc', target='own/config/fvwm2rc', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
18 files.link(path='/home/drewp/.hgrc', target='own/config/hgrc', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
19 files.link(path='/home/drewp/.kitty', target='own/config/kitty', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
20 files.link(path='/home/drewp/.zshrc', target='own/config/zshrc', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
21 files.link(path='/home/drewp/bin', target='own/config/bin/', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
22 files.link(path='/home/drewp/blenderkit_data', target='own/gfx-lib/blenderkit_data/', force=True)
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
23
de407da9224a homedir links
drewp@bigasterisk.com
parents:
diff changeset
24 #drwx------ 3 drewp drewp 4096 Jul 31 15:07 .config/syncthing