pass: auto unlock password
This commit is contained in:
parent
45d6d9e2f7
commit
cae19ecd0e
|
@ -209,6 +209,7 @@ dynvariables:
|
|||
nproc: nproc
|
||||
memory_size: env LC_ALL=C free -b | awk '/^Mem:/ {print $2}'
|
||||
deezer_arl: pass show Entertainment/Deezer | awk '/^arl:/ {print $2}'
|
||||
main_password: _pass_get "{{@@ mail.personal.mail @@}}" | base64
|
||||
|
||||
|
||||
###############################################################
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
pidof gpg-agent ||
|
||||
gpg-agent --daemon
|
||||
|
||||
KEYGRIP=$(cat "$HOME/.pam-gnupg")
|
||||
|
||||
sudo cat /etc/.passwd |
|
||||
base64 -d |
|
||||
/usr/lib/gnupg/gpg-preset-passphrase --preset "$KEYGRIP"
|
|
@ -19,6 +19,8 @@ exec_always pidof mpd || mpd --no-daemon
|
|||
exec_always pidof -x mpDris2 || sleep 5s && mpDris2
|
||||
# Syncthing, sync folders between stuff
|
||||
exec pidof syncthing || syncthing -no-browser
|
||||
# Unlock gpg-agent
|
||||
exec_always _pam_unlock
|
||||
|
||||
|
||||
###############################################################
|
||||
|
|
|
@ -40,6 +40,7 @@ actions:
|
|||
create_swapfile: _create-swapfile
|
||||
mount_partitions: mount -a
|
||||
dbus_uuidgen: dbus-uuidgen --ensure
|
||||
passwd: chmod 600 /etc/.passwd
|
||||
|
||||
|
||||
###############################################################
|
||||
|
@ -52,6 +53,12 @@ dotfiles:
|
|||
actions:
|
||||
- greetd_install
|
||||
|
||||
passwd:
|
||||
src: passwd
|
||||
dst: /etc/.passwd
|
||||
actions:
|
||||
- passwd
|
||||
|
||||
elogind:
|
||||
src: elogind.conf
|
||||
dst: /etc/elogind/logind.conf
|
||||
|
|
|
@ -20,6 +20,6 @@ command = "sway --config /etc/greetd/sway-config"
|
|||
# in the `video` group.
|
||||
user = "greeter"
|
||||
|
||||
# [initial_session]
|
||||
# command = "{{@@ env['SHELL'] @@}}"
|
||||
# user = "{{@@ env['USER'] @@}}"
|
||||
[initial_session]
|
||||
command = "{{@@ env['SHELL'] @@}}"
|
||||
user = "{{@@ env['USER'] @@}}"
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
{{@@ main_password @@}}
|
Reference in New Issue