From 0dc03632c7eb24227cdecbe460ab8d42669430a7 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 12 Dec 2025 18:26:07 +0100 Subject: Fix the dotfiles setup to be more generic and not requiring sudo The sude was used to link the pinentry-wrapper into the /usr/local/bin dir --- group_vars/all.yml.example | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'group_vars/all.yml.example') diff --git a/group_vars/all.yml.example b/group_vars/all.yml.example index d0066bcc..7d204bd8 100644 --- a/group_vars/all.yml.example +++ b/group_vars/all.yml.example @@ -43,14 +43,20 @@ password_policy_gecoscheck: 0 dotfiles_repo_url: "https://git.sr.ht/~a14m/.rc" dotfiles_setup_script: | + set -e + rm -f ~/.bash_profile cd ~/.rc - stow --no-folding . - chmod 0700 ~/.gnupg - gpgconf --kill gpg-agent - gpg-connect-agent /bye + stow --no-folding --adopt . + git restore . git remote set-url origin git@git.sr.ht:~a14m/.rc + ln -sf ~/.rc/.gnupg/pinentry-wrapper ~/.local/bin/pinentry-wrapper + envsubst < ~/.gnupg/gpg-agent.conf.template > ~/.gnupg/gpg-agent.conf + chmod 0700 ~/.gnupg + gpgconf --kill gpg-agent 2>/dev/null || true + gpg-connect-agent /bye 2>/dev/null || true + password_store_repo_url: "git@github.com:a14m/.pass" vimrc_repo_url: "git@git.sr.ht:~a14m/.vim" vimrc_setup_script: | -- cgit v1.2.3