Select the types of activity you want to include in your feed.
Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature.
gitlab.com/andreijiroh-dev/dotfiles
···11-#!/usr/bin/env sh
11+#!/usr/bin/env bash
22+33+set -x
2433-if [ ! -d "$HOME/.git" ]; then
55+if [ ! -d "$HOME/.git" ] && [ -d "$HOME/.local/share/yadm/repo.git" ]; then
46 echo "Symlinking ~/.git to ~/.local/share/yadm/repo.git for compatibility"
57 ln -s ~/.local/share/yadm/repo.git ~/.git
88+elif [ -d "$HOME/.git" ] && [ ! -d "$HOME/.local/share/yadm/repo.git" ]; then
99+ echo "Symlinking ~/.local/share/yadm/repo.git to ~/.git for compatibility"
1010+ ln -s ~/.git ~/.local/share/yadm/repo.git
611fi
71288-git remote set-url origin ssh://git@mau.dev/andreijiroh.dev/dotfiles
99-git remote add hut ssh://git@git.sr.ht/~ajhalili2006/dotfiles1313+echo "Setting git remote URLs to SSH"
1414+git remote set-url origin ssh://git@mau.dev/andreijiroh.dev/dotfiles || true
1515+git remote set-url hut ssh://git@git.sr.ht/~ajhalili2006/dotfiles || true
+16
README.md
···26262727## Setup
28282929+### With yadm
3030+3131+```shell
3232+# on a Alpine Linux sandbox VM (or chroot)
3333+apk add yadm git gnupg
3434+3535+yadm clone https://mau.dev/andreijiroh.dev/dotfiles
3636+yadm restore --staged $HOME
3737+yadm checkout -- $HOME
3838+3939+# run the bootstrap script
4040+yadm bootstrap
4141+```
4242+4343+### Without yadm
4444+2945It's easy, although this will be different because `git clone <clone-url-above>` will
3046scream some errors when attempt to do so after creating a user with their own home directory.
3147