Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature. gitlab.com/andreijiroh-dev/dotfiles
linux dotfiles
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(yadm): update README and add post-clone bootstrap script

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>

+26 -4
+10 -4
.config/yadm/bootstrap.d/00-post-clone-repo.sh
··· 1 - #!/usr/bin/env sh 1 + #!/usr/bin/env bash 2 + 3 + set -x 2 4 3 - if [ ! -d "$HOME/.git" ]; then 5 + if [ ! -d "$HOME/.git" ] && [ -d "$HOME/.local/share/yadm/repo.git" ]; then 4 6 echo "Symlinking ~/.git to ~/.local/share/yadm/repo.git for compatibility" 5 7 ln -s ~/.local/share/yadm/repo.git ~/.git 8 + elif [ -d "$HOME/.git" ] && [ ! -d "$HOME/.local/share/yadm/repo.git" ]; then 9 + echo "Symlinking ~/.local/share/yadm/repo.git to ~/.git for compatibility" 10 + ln -s ~/.git ~/.local/share/yadm/repo.git 6 11 fi 7 12 8 - git remote set-url origin ssh://git@mau.dev/andreijiroh.dev/dotfiles 9 - git remote add hut ssh://git@git.sr.ht/~ajhalili2006/dotfiles 13 + echo "Setting git remote URLs to SSH" 14 + git remote set-url origin ssh://git@mau.dev/andreijiroh.dev/dotfiles || true 15 + git remote set-url hut ssh://git@git.sr.ht/~ajhalili2006/dotfiles || true
+16
README.md
··· 26 26 27 27 ## Setup 28 28 29 + ### With yadm 30 + 31 + ```shell 32 + # on a Alpine Linux sandbox VM (or chroot) 33 + apk add yadm git gnupg 34 + 35 + yadm clone https://mau.dev/andreijiroh.dev/dotfiles 36 + yadm restore --staged $HOME 37 + yadm checkout -- $HOME 38 + 39 + # run the bootstrap script 40 + yadm bootstrap 41 + ``` 42 + 43 + ### Without yadm 44 + 29 45 It's easy, although this will be different because `git clone <clone-url-above>` will 30 46 scream some errors when attempt to do so after creating a user with their own home directory. 31 47