-
-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefox configuration via policies.json
for NixOS Setup?
#905
Comments
policies.json
on NixOS?policies.json
for NixOS Setup?
What is the thing that's not working? Is it installing LR but it's not functional? Or not able to install it in the first place? |
It's able to install through firefox policy and works without issues, the problem is that i am unable to configure the extension to e.g. enable youtube redirects for all systems upon deployment and it has to be set up manually (on all systems after each reboot basically which is very exhausting..) as it seems to be using a Firefox storage API that is at present options impossible to adjust in a declarative way due to firefox converting that to an sqlite database which is apparently keep changing. uBlock Origin seems to manage that through https://github.com/gorhill/uBlock/blob/9146134874050ee50a11e25f31034a2416cf5988/platform/common/vapi-background.js#L1436-L1451 which makes it possible to read/override settings from firefox policies upon deployment Relevant quote:
|
Duplicated: #872 |
I would also very much like this, for the exact same reasons. :) |
I implemented managed storage for Redirector, which can be configured to do the same thing as LR. einaregilsson/Redirector#399 |
Referencing: https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265/26?u=kryren
NixOS is a linux/bsd distribution that is on my end stateless meaning that the OS reinstalls itself on each reboot to provide bit-by-bit reproducible OS on each reboot with any changes made to the filesystem that are not explicitly set in the configuration or allowlisted (e.g. personal files) are removed.
For Firefox i am trying to declare a libredirect configuration so that when i open firefox it would have the extension configured to my liking without me having to reconfigure libredirect after each reboot.
On Firefox this is often done through
policies.json
(https://support.mozilla.org/en-US/kb/customizing-firefox-using-policiesjson) such as ublock-origin:https://github.com/Kreyren/nixos-config/blob/bd4765eb802a0371de7291980ce999ccff59d619/nixos/users/kreyren/home/modules/web-browsers/firefox/firefox.nix#L116-L148
For that i found the
config.json
file:https://github.com/libredirect/browser_extension/blob/b3457faf1bdcca0b17872e30b379a7ae55bc8fd0/src/config.json
But trying to replicate it's configuration in
policies.json
doesn't work:https://github.com/Kreyren/nixos-config/blob/bd4765eb802a0371de7291980ce999ccff59d619/nixos/users/kreyren/home/modules/web-browsers/firefox/firefox.nix#L114
The generated policy.json:
Do you know why that doesn't work or if it's extension-related issue could you adjust libredirect so that it can be configured through
policies.json
?The text was updated successfully, but these errors were encountered: