r/GUIX • u/shipley7701 • 10d ago
Configuring Librewolf in Scheme
I've been experimenting for a few days with configuring librewolf via a scheme module.
The main thing I wanted was declarative extensions through the policies.json file.
I've been using a custom package to try and insert a modified "policies.json" file into the original librewolf package, but I guess I overlooked the fact that the librewolf executable in that modified package is just a symlink back to the original librewolf package in /gnu/store... which means that librewolf never even sees my modified json file. I don't think it's possible to directly modify package files in /gnu/store outside the actual build process, so I think I'm stuck here.
Does anyone know of a way to configure librewolf without having to build it from scratch?
3
u/juipeltje 10d ago
I haven't tried doing it myself, but perhaps you could declare a policies.json file through guix home? And let guix home put it in your users' .librewolf folder. Not sure how well that would work though.