diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-12-12 18:26:07 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-12-12 21:05:58 +0100 |
| commit | 0dc03632c7eb24227cdecbe460ab8d42669430a7 (patch) | |
| tree | 64dde56f37085a2c37ab86d9cc8cc8a450aa7901 | |
| parent | 1cc253f2da07ca33baf1ba6cac789cdb92923f36 (diff) | |
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
| -rw-r--r-- | group_vars/all.yml | bin | 4439 -> 4655 bytes | |||
| -rw-r--r-- | group_vars/all.yml.example | 14 |
2 files changed, 10 insertions, 4 deletions
diff --git a/group_vars/all.yml b/group_vars/all.yml Binary files differindex ec7549d1..9e7970fa 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml 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 [email protected]:~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: "[email protected]:a14m/.pass" vimrc_repo_url: "[email protected]:~a14m/.vim" vimrc_setup_script: | |
