view 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
line wrap: on
line source

from pyinfra import host
from pyinfra.operations import files, server

if host.data.get('drewp_home'):
    # maybe bring sync.py in here too

    server.shell(commands=['chsh -s /bin/zsh drewp'])
    files.link(path='/home/drewp/.aptitude/config', target='../own/config/aptitude-config', force=True)
    files.link(path='/home/drewp/.config/blender',  target='../own/config/blender', force=True)
    files.link(path='/home/drewp/.config/i3',       target='../own/config/i3', force=True)
    files.link(path='/home/drewp/.emacs.d',         target='own/config/emacs-d', force=True)
    files.link(path='/home/drewp/.fonts',           target='own/config/fonts', force=True)
    files.link(path='/home/drewp/.fvwm2rc',         target='own/config/fvwm2rc', force=True)
    files.link(path='/home/drewp/.hgrc',            target='own/config/hgrc', force=True)
    files.link(path='/home/drewp/.kitty',           target='own/config/kitty', force=True)
    files.link(path='/home/drewp/.zshrc',           target='own/config/zshrc', force=True)
    files.link(path='/home/drewp/bin',              target='own/config/bin/', force=True)
    files.link(path='/home/drewp/blenderkit_data',  target='own/gfx-lib/blenderkit_data/', force=True)

#drwx------  3 drewp drewp  4096 Jul 31 15:07 .config/syncthing
#npm.rc?
# run on bang: pnpm server --background start