diff options
| author | 2026-06-05 11:06:02 +0100 | |
|---|---|---|
| committer | 2026-06-05 11:06:02 +0100 | |
| commit | 4d8cf1bc30a076e2976787051d28d8072f8f5321 (patch) | |
| tree | 1c2f9044f6fc087145ad9e7bdf77228e02954c7f /dot_config/systemd/user | |
| parent | 7414a25165e1469cacee3fa9d8e9dd25df640aa0 (diff) | |
| download | dotfiles-4d8cf1bc30a076e2976787051d28d8072f8f5321.tar.gz dotfiles-4d8cf1bc30a076e2976787051d28d8072f8f5321.tar.bz2 dotfiles-4d8cf1bc30a076e2976787051d28d8072f8f5321.zip | |
refactor(mail): migrate protonmail-bridge from pacman to nix
Move the ProtonMail Bridge off the AUR protonmail-bridge-core package
and onto nix/host.nix, consistent with the other migrated user-leaf
tools. Since the AUR package previously supplied the systemd user unit
(customized via a drop-in), ship a repo-owned
dot_config/systemd/user/protonmail-bridge.service instead: it runs the
nix binary by absolute %h/.nix-profile/bin path with --noninteractive
and folds the former drop-in's PASSWORD_STORE_DIR into the unit, so the
now-redundant protonmail-bridge.service.d/override.conf is removed.
Drop protonmail-bridge-core from meta/base.txt (the git send-email Perl
prereqs stay). No vm.nix change: the bridge is host-only and user units
are not symlinked on the headless VM.
Diffstat (limited to 'dot_config/systemd/user')
| -rw-r--r-- | dot_config/systemd/user/protonmail-bridge.service | 14 | ||||
| -rw-r--r-- | dot_config/systemd/user/protonmail-bridge.service.d/override.conf | 2 |
2 files changed, 14 insertions, 2 deletions
diff --git a/dot_config/systemd/user/protonmail-bridge.service b/dot_config/systemd/user/protonmail-bridge.service new file mode 100644 index 0000000..b664eba --- /dev/null +++ b/dot_config/systemd/user/protonmail-bridge.service @@ -0,0 +1,14 @@ +[Unit] +Description=ProtonMail Bridge (local IMAP/SMTP gateway) +Documentation=https://proton.me/mail/bridge + +[Service] +Type=simple +# pass-backed credential vault (gpg-agent decrypts on first start). +Environment=PASSWORD_STORE_DIR=%h/.local/share/password-store +ExecStart=%h/.nix-profile/bin/protonmail-bridge --noninteractive +Restart=on-failure +RestartSec=5s + +[Install] +WantedBy=default.target diff --git a/dot_config/systemd/user/protonmail-bridge.service.d/override.conf b/dot_config/systemd/user/protonmail-bridge.service.d/override.conf deleted file mode 100644 index 7e39182..0000000 --- a/dot_config/systemd/user/protonmail-bridge.service.d/override.conf +++ /dev/null @@ -1,2 +0,0 @@ -[Service] -Environment=PASSWORD_STORE_DIR=%h/.local/share/password-store |
