From be3c6fda881bc11d5123d6b3a09ce9d250199b32 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 29 May 2026 11:18:16 +0100 Subject: refactor(eer): install external-editor-revived via nix on the host MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The AUR `external-editor-revived` PKGBUILD declares a hard `thunderbird` dependency, which blocks removing the unused system Thunderbird binary alongside the org.mozilla.thunderbird flatpak (and pacman's `AssumeInstalled` is a CLI flag, not a pacman.conf directive, so the previous workaround was nonfunctional). Nixpkgs' `external-editor-revived` is just `rustPlatform.buildRustPackage` plus a relocatable native-messaging manifest — zero mailer dep — so the host gets it from nix instead. * nix/host.nix: add `external-editor-revived` to `home.packages`. Kept out of `common.nix` so the remote-dev VM (which has no Thunderbird) doesn't carry the build closure. * run_onchange_after_deploy-tb-eer.sh.tmpl: search `~/.nix-profile/{bin,lib/mozilla/native-messaging-hosts}` first and fall through to the legacy pacman paths. The chezmoi manifest-hash probe now checks the nix path too, so the hook re-runs cleanly when nix bumps the EER version. * meta/base.txt: drop the `external-editor-revived` AUR entry and rewrite the comment to point at the nix declaration. * etc/pacman.conf: revert the bogus `AssumeInstalled` directive (CLI-only, not pacman.conf). On-host migration: home-manager switch --flake ~/dotfiles/nix#host # picks up EER sudo pacman -Rns external-editor-revived thunderbird mpv chezmoi apply -v # re-runs tb-eer hook --- meta/base.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'meta') diff --git a/meta/base.txt b/meta/base.txt index a226674..f77b85b 100644 --- a/meta/base.txt +++ b/meta/base.txt @@ -195,12 +195,10 @@ protonmail-bridge-core perl-authen-sasl perl-mime-tools perl-net-smtp-ssl -# Native messaging host binary for External Editor Revived; bridged into -# the TB flatpak by run_onchange_after_deploy-tb-eer.sh.tmpl. -# Pulls `thunderbird` as a hard dep, which we don't want (we use the -# org.mozilla.thunderbird flatpak); pacman.conf's AssumeInstalled rule -# pretends thunderbird is installed so this resolves without the package. -external-editor-revived +# (External Editor Revived's native-messaging host is installed via nix +# on the host — see nix/host.nix — so we don't pay the AUR variant's +# hard `thunderbird` dependency. The bridge into the TB flatpak is +# wired up by run_onchange_after_deploy-tb-eer.sh.tmpl.) # --- media (mpv is the io.mpv.Mpv flatpak in meta/flatpak.txt; streamlink # and yt-dlp run on the host and pipe/launch into the flatpak mpv via -- cgit v1.3.1