[Solved] Passff-host with firefox

Hi all,

I’m using unstable channel mainly as NixOS is my second OS after Arch. I’m in the process of learning Nix but i’m come from Unix, NetBSD, and GNU/Linux. Declarative OS are new to me. NixOS seem really great and may come my main OS soon.

I’ve added this to my configuration.nix:

  programs.firefox = {
    enable = true;
    nativeMessagingHosts.packages = [ pkgs.passff-host ];
  };

No error when rebuilding (nixos-rebuild switch) but I can’t use passff in Firefox as it can’t find passff-host.
For now it’s the only thing I need that i can’t understand why it do not work :wink:

It works for me - does it create a /run/current-system/sw/lib/mozilla/native-messaging-hosts/passff.json?

Yes, this file is created. Tried a reboot, but same problem.
I’ll try with a fresh firefox profile tomorrow.
Thanks for your help.

My bad! There’s and old (manual install?) of passff-host in my ~/.mozilla/native-messaging-hosts with passff.json and passff.py.
Now it work perfectly, the Nix way :slight_smile: