Skip to content

Commit

Permalink
Add systemd units
Browse files Browse the repository at this point in the history
  • Loading branch information
grimsteel committed Jul 21, 2024
1 parent 89a6d44 commit 96d23b7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# Pass Secret Service

![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/grimsteel/pass-secret-service/release.yml)

Implementation of [`org.freedesktop.secrets`](https://specifications.freedesktop.org/secret-service/latest) using [`pass`](https://www.passwordstore.org/)

Secrets are stored in GPG files under `~/.password-store/secret-service`. Attributes are not encrypted.

## Installation

[![AUR Badge](https://img.shields.io/aur/version/pass-secret-service-bin)](https://aur.archlinux.org/packages/pass-secret-service-bin)

There are prebuilt binaries for `x86_64-unknown-linux-gnu` on the Releases page.

### Building from source

Does not require any additional dependencies to build (uses a pure-rust D-Bus implementation)

```sh
cargo build --release
```

A systemd user unit and a D-Bus session activation file are located in the `systemd` directory
4 changes: 4 additions & 0 deletions systemd/org.freedesktop.secrets.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[D-Bus Service]
Name=org.freedesktop.secrets
Exec=/usr/bin/pass-secret-service
SystemdService=pass-secret-service.service
8 changes: 8 additions & 0 deletions systemd/pass-secret-service.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=org.freedesktop.secrets agent for pass
PartOf=graphical-session.target

[Service]
Type=dbus
BusName=org.freedesktop.secrets
ExecStart=/usr/bin/pass-secret-service

0 comments on commit 96d23b7

Please sign in to comment.