Fix broken dotdrop install on termux

This commit is contained in:
Marko Korhonen 2024-05-25 18:38:43 +03:00
parent 6711038e53
commit f697324821
2 changed files with 5 additions and 12 deletions

View file

@ -167,7 +167,7 @@ alias i='iwctl station wlan0'
cpufreq() { watch -n 1 eval "cat /proc/cpuinfo | grep MHz" }
# dotdrop
alias dotdrop="source $DOTREPO/secrets/secrets && UID=$(id -u) dotdrop --cfg=$DOTREPO/config.toml {%@@ if profile == "Isengard" @@%} -p Isengard{%@@ endif @@%}"
alias dotdrop="source $DOTREPO/secrets/secrets && {%@@ if distro_id != "termux" @@%} UID=$(id -u) {%@@ endif @@%} dotdrop --cfg=$DOTREPO/config.toml {%@@ if profile == "Isengard" @@%} -p Isengard{%@@ endif @@%}"
alias sdotdrop="source $DOTREPO/secrets/secrets && sudo -E dotdrop --cfg=$DOTREPO/config-root.toml"

View file

@ -11,11 +11,12 @@ host moria
HostName korhonen.cc
port 221
User balrog
StreamLocalBindUnlink yes
{%@@ if distro_id != "termux" @@%}
# Forward GPG agent
StreamLocalBindUnlink yes
RemoteForward /run/user/1000/gnupg/S.gpg-agent /run/user/{{@@ env['UID'] @@}}/gnupg/S.gpg-agent.extra
RemoteForward /run/user/1000/gnupg/S.gpg-agent.ssh /run/user/{{@@ env['UID'] @@}}/gnupg/S.gpg-agent.ssh
{%@@ endif @@%}
host beleriand
HostName beleriand.korhonen.lan
@ -29,15 +30,6 @@ host rivendell
HostName rivendell.korhonen.lan
User root
host tirion
HostName tirion.korhonen.cc
port 22
User gandalf
# Forward GPG agent
StreamLocalBindUnlink yes
RemoteForward /run/user/1000/gnupg/S.gpg-agent /run/user/{{@@ env['UID'] @@}}/gnupg/S.gpg-agent.extra
RemoteForward /run/user/1000/gnupg/S.gpg-agent.ssh /run/user/{{@@ env['UID'] @@}}/gnupg/S.gpg-agent.ssh
host forgejo
HostName git.korhonen.cc
port 2882
@ -68,11 +60,12 @@ host gondor
hostname tolkku.net
port 22
User reekymarko
StreamLocalBindUnlink yes
{%@@ if distro_id != "termux" @@%}
# Forward GPG agent
StreamLocalBindUnlink yes
RemoteForward /run/user/1000/gnupg/S.gpg-agent /run/user/{{@@ env['UID'] @@}}/gnupg/S.gpg-agent.extra
RemoteForward /run/user/1000/gnupg/S.gpg-agent.ssh /run/user/{{@@ env['UID'] @@}}/gnupg/S.gpg-agent.ssh
{%@@ endif @@%}
host anitta
HostName 10.200.200.4