Add pam_exec-ssh

This commit is contained in:
2021-04-30 21:10:21 +01:00
parent a684435199
commit 7c0a4af2c8
2 changed files with 51 additions and 3 deletions

19
install
View File

@ -1,10 +1,10 @@
#!/bin/sh -e
repo_dir=$(readlink -f $(dirname "$0"))
link() {
[ -L "~/.config" ] || return 0
repo_dir=$(readlink -f $(dirname "$0"))
for file in ".profile" ".zprofile" ".config"; do
ln -sf "$repo_dir/$file" "~/$file"
done
@ -59,6 +59,19 @@ install() {
[ -d "/usr/share/themes/Nova" ] || sudo git clone \
https://git.vimium.com/jordan/gtk-nova-theme.git \
/usr/share/themes/Nova
[ -x "/usr/bin/pam_exec-ssh" ] || {
sudo install -m755 \
"$repo_dir/.config/ssh-agent/pam_exec-ssh" \
/usr/bin/pam_exec-ssh
mkdir ~/.ssh/unlock.d
ln -s ~/.ssh/id_ed25519 ~/.ssh/unlock.d/id_ed25519
}
}
install && link
configure() {
systemctl --user enable ssh-agent
systemctl --user enable sway
}
install && link && configure