Hi, I’m tring to integrate KeepassXC using the KeepassXC-Browser extension with Brave (currently a flatpak) and LibreWolf on my NixOS system. I tried the following instructions: KeePassXC: Getting Started Guide, but cannot connect to the database.
Is there a way to allow access by configuring my flake or with flatpak? Would be great if the extension could be declared or used as an option or override. Thanks!
Hey @Zonsopkomst, I found your post while searching for the same thing and I don’t know if you got it working or not, but I thought I’d share my progress for anyone looking for this in the future as well.
As far as I know, flatpak integration is still an issue. However, some people found a workaround to get KeepassXC (flatpak version) integration working with flatpaked browsers (including Brave):
That being said, integration with normal Brave and Librewolf (installed from nikpkgs) works without any issues:
For Brave, you just go to Settings > Browser Integration > General and tick Brave.
For Librewolf, you go to Settings > Browser Integration > Advanced and you tick Use a custom browser configuration location
@blankparticle Thanks for the comment and sorry I haven’t gotten back in a timely manner. I too ended up going back to the normal Brave and had that working, but couldn’t figure out Librewolf. I was looking for native-messaging-hosts per documentation and could not find the subdirectory for the life of me. Lo and behold, giving it one more try, I copied and pasted your config location into KeePass’ browser integration settings, and it just worked! Turns out the folder is created after this setting is made! Thanks so much!
And I think there is a way to to use flatseal or adjust configs another way for flatpaks to integrate better into NixOS, but now that I have this working I have taken the fail and moved on to other issues that I have not yet solved that are more pertinent to me.
Good to know. Thanks. I did not see an option specifically for KeePassXC listed under home-manager options
I wonder if the same would work for Librewolf, even though there is not any option listed for nativeMessageHosts? May have to try when I have some spare time.
The programs.firefox.nativeMessagingHosts option simply links all files under lib/mozilla/native-messaging-hosts/*.json of the listed derivations (see here). So just check whether librewolf exposes such a file.