From 0ca2831d0560122a2685a7c44b11710d2126b269 Mon Sep 17 00:00:00 2001
From: Tobias Reisinger <tobias@msrg.cc>
Date: Thu, 19 Oct 2023 01:23:36 +0200
Subject: [PATCH] Add yadm bootstrap script

---
 .bashrc                | 2 --
 .config/yadm/bootstrap | 7 +++++++
 .config/yadm/encrypt   | 1 +
 .config/zsh/.zshrc     | 2 --
 4 files changed, 8 insertions(+), 4 deletions(-)
 create mode 100755 .config/yadm/bootstrap
 create mode 100644 .config/yadm/encrypt

diff --git a/.bashrc b/.bashrc
index a6ab826..1a078a5 100644
--- a/.bashrc
+++ b/.bashrc
@@ -8,8 +8,6 @@ then
     exit
 fi
 
-autoinstall base
-
 # Set name of the theme to load. Optionally, if you set this to "random"
 # it'll load a random theme each time that oh-my-bash is loaded.
 OSH_THEME="brainy"
diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap
new file mode 100755
index 0000000..d2fb0e6
--- /dev/null
+++ b/.config/yadm/bootstrap
@@ -0,0 +1,7 @@
+#!/usr/bin/env sh
+
+echo "Updating push-url to use ssh"
+yadm remote set-url --push origin "git@git.serguzim.me:serguzim/.dotfiles.git"
+
+echo "Autoinstall base"
+autoinstall base
diff --git a/.config/yadm/encrypt b/.config/yadm/encrypt
new file mode 100644
index 0000000..aa6f8f0
--- /dev/null
+++ b/.config/yadm/encrypt
@@ -0,0 +1 @@
+.config/env.d/99-secrets
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index 5b9227e..894a18d 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -2,8 +2,6 @@ source "$HOME/.config/environment"
 
 autoinstall git "https://github.com/ohmyzsh/ohmyzsh.git" "$ZSH"
 
-autoinstall base
-
 # Set name of the theme to load --- if set to "random", it will
 # load a random theme each time oh-my-zsh is loaded, in which case,
 # to know which specific one was loaded, run: echo $RANDOM_THEME