I need to deploy my Firefox configured and with extensions in NixOS. I want to do that declaratively (in configuration.nix
) and I do not want to use home-manager.
Via user profile:
- Configuring possible via preference files
- Loading extensions is not possible, support has ended with Firefox 74
Via installation directory:
- Configuration + extensions managable via policies.json
Firefox looks for the config in /nix/store/<hash>-firefox-unwrapped-74.0.1/lib/firefox/distribution/policies.json
(verified with strace
).
Hence the question: How do I add this file to the Firefox nixpkgs package? (Bonus question: How do I get a file from my Github Repo there?)
I'm rather new to NixOs. I consulted the manuals about overriding, overlays, wrapping and more but I couldn't manage to pull it off. I tried with both firefox
, firefox-bin
and firefox-unwrapped
.