eraserhd
13 days agoNew Contributor
NixOS firefox/CLI integration issues
So I have firefox, the plugin, the 1password-gui and 1password-cli installed on linux. I have browser integration enabled and CLI integration enabled, but neither of them can connect.
14:53:21 1 jfelice@crunch dotfiles (main)
ᐅ op item list
[ERROR] 2025/04/08 14:53:23 connecting to desktop app: read: connection reset, make sure 1Password CLI is installed correctly, then open the 1Password app, select 1Password > Settings > Developer and make sure the 'Integrate with 1Password CLI' setting is turned on. If you're still having trouble connecting, visit https://developer.1password.com/docs/cli/app-integration#troubleshooting for more help.
And in the browser extension settings...
Integration status: Connection problem
14:53:23 1 jfelice@crunch dotfiles (main)
ᐅ readlink $(which op)
/nix/store/w67k6df9s68q7cx1hyz95n472qw6qyx6-1password-cli-2.30.3/bin/op
14:55:51 0 jfelice@crunch dotfiles (main)
ᐅ readlink $(which 1password)
/nix/store/wly2hz7f8fsjhbg102kk7vxydy0z2l2w-1password-8.10.70/bin/1password
And from the browser's "about":
1Password browser extension version 8.10.70.27
81070027, on STABLE channel
Any clues? Should I be looking for a socket with missing perms or something?
Thanks! So it seems the permissions requirements for the binaries means that it requires more than just installing the Nix packages. In my config, I had to put:
config = { nixpkgs.config.allowUnfree = true; programs._1password.enable = true; programs._1password-gui.enable = true; };
Instead of:
nixpkgs.config.allowUnfree = true; environment.systemPackages = with pkgs; [ _1password-cli _1password-gui ];
Everything now works for me.