summaryrefslogtreecommitdiffstats
path: root/group_vars
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-12-12 18:26:07 +0100
committerAhmed Abdelhalim <[email protected]>2025-12-12 21:05:58 +0100
commit0dc03632c7eb24227cdecbe460ab8d42669430a7 (patch)
tree64dde56f37085a2c37ab86d9cc8cc8a450aa7901 /group_vars
parent1cc253f2da07ca33baf1ba6cac789cdb92923f36 (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
Diffstat (limited to 'group_vars')
-rw-r--r--group_vars/all.ymlbin4439 -> 4655 bytes
-rw-r--r--group_vars/all.yml.example14
2 files changed, 10 insertions, 4 deletions
diff --git a/group_vars/all.yml b/group_vars/all.yml
index ec7549d1..9e7970fa 100644
--- a/group_vars/all.yml
+++ b/group_vars/all.yml
Binary files differ
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: |