Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
eraserhd
6 months 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.
3 Replies
- 1P_Dave
Moderator
Hello eraserhd! 👋
I'm sorry that both browser integration as well as the 1Password CLI aren't working on your NixOS system. While NixOS isn't one of our supported operating systems (you can find those listed here) I'll try to help as much as possible.
As a start, I see that there's an active discussion in the NixOS repo in Gitlab. Although I can't vouch for the accuracy of the information found there, some users have posted suggestions that might help: https://github.com/NixOS/nixpkgs/issues/258139
-Dave- eraserhdNew Contributor
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.
- 1P_Dave
Moderator
I'm glad that you were able to resolve the issue, thanks for sharing with the community. 🙂
-Dave