trezor+GPG: init socket/service

This commit is contained in:
Josh Lay 2024-08-25 10:13:50 -05:00
parent 38a7a6a4be
commit 780041411a
No known key found for this signature in database
GPG key ID: 47AA304B2243B579
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,9 @@
[Unit]
Description=trezor-gpg-agent
Requires=trezor-gpg-agent.socket
[Service]
Type=simple
Environment="GNUPGHOME=%h/.gnupg/trezor"
Environment="PATH=/bin:/usr/bin:/usr/local/bin:%h/.local/bin"
ExecStart=%h/.local/bin/trezor-gpg-agent --pin-entry-binary=/usr/bin/pinentry-gnome3 --passphrase-entry-binary=/usr/bin/pinentry-gnome3

View file

@ -0,0 +1,11 @@
[Unit]
Description=trezor-gpg-agent socket
[Socket]
ListenStream=%t/gnupg/S.gpg-agent
FileDescriptorName=std
SocketMode=0600
DirectoryMode=0700
[Install]
WantedBy=sockets.target