changeset 110:de407da9224a

homedir links
author drewp@bigasterisk.com
date Sat, 20 Aug 2022 14:13:02 -0700
parents 4e9e3446b078
children 340d778a1682
files home.py tasks.py
diffstat 2 files changed, 30 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/home.py	Sat Aug 20 14:13:02 2022 -0700
@@ -0,0 +1,24 @@
+from pyinfra import host
+from pyinfra.operations import files
+
+if host.name in [
+    #'dash',
+    'slash',
+    'bang',
+    ]:
+    # maybe bring sync.py in here too
+
+    # chsh zsh
+
+    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/.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
--- a/tasks.py	Sat Aug 20 14:12:46 2022 -0700
+++ b/tasks.py	Sat Aug 20 14:13:02 2022 -0700
@@ -74,6 +74,11 @@
 
 
 @task
+def home(ctx):
+    ctx.run(cmd + 'inventory.py home.py', pty=True)
+
+
+@task
 def pipe(ctx):
     ctx.run(cmd + 'inventory.py pipe.py --limit pipe', pty=True)
 
@@ -91,6 +96,7 @@
         'kube.py',
         'sync.py',
         'mail.py',
+        'home.py',
     ]
     # https://github.com/Fizzadar/pyinfra/issues/787
     #ctx.run(' '.join([cmd, 'inventory.py'] + configs), pty=True)