diff options
author | EuAndreh <eu@euandre.org> | 2022-10-31 20:22:43 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-10-31 20:23:47 -0300 |
commit | 251a766b0f81c1569873ec4cb536428e08b16ed7 (patch) | |
tree | b4de07f58b1c862de2afd1ee1d2d1c32c35ab621 | |
parent | bin/check: Use $XDG_PREFIX over hard-coding ~/.usr/ (diff) | |
download | dotfiles-251a766b0f81c1569873ec4cb536428e08b16ed7.tar.gz dotfiles-251a766b0f81c1569873ec4cb536428e08b16ed7.tar.xz |
etc/ssh/config: Generate with envsubst
So that the `Include` can also point to a variable.
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | etc/ssh/config.tmpl (renamed from etc/ssh/config) | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -16,6 +16,7 @@ derived-assets = \ $(XDG_CONFIG_HOME)/ssh/id_rsa.pub \ $(XDG_CONFIG_HOME)/git/config-extra \ $(XDG_CONFIG_HOME)/gnupg/gpg-agent.conf \ + $(XDG_CONFIG_HOME)/ssh/config \ $(XDG_CONFIG_HOME)/alot/config \ $(XDG_CONFIG_HOME)/mbsync/config \ $(XDG_CONFIG_HOME)/msmtp/config \ @@ -58,6 +59,9 @@ $(XDG_CONFIG_HOME)/ssh/id_rsa.pub: gpg --export-ssh-key eu@euandre.org > $@ chmod 600 $@ +$(XDG_CONFIG_HOME)/ssh/config: $(XDG_CONFIG_HOME)/ssh/config.tmpl + envsubst < $(XDG_CONFIG_HOME)/ssh/config.tmpl > $@ + $(XDG_CONFIG_HOME)/git/config-extra: printf '[sendemail]\n smtpserver = ' > $@ command -v msmtpq >> $@ diff --git a/etc/ssh/config b/etc/ssh/config.tmpl index e548fe2..fd4b8a3 100644 --- a/etc/ssh/config +++ b/etc/ssh/config.tmpl @@ -3,4 +3,4 @@ Host * Include ~/dev/libre/servers/src/infrastructure/ssh.conf Include ~/dev/others/lawtech/src/infrastructure/ssh.conf -Include ~/.usr/share/euandreh/vm-ssh.conf +Include ${XDG_DATA_HOME}/euandreh/vm-ssh.conf |