-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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: use policies.json to install extensions #1434
Conversation
This probably isn't the cleanest way to write this code, but it does work. The benefit of this over sideloading is that the extensions are automatically enabled, and there aren't any warnings. The DisableAppUpdate policy normally comes from the system policies.json, which we override.
Emacs tests are failing, but that looks like it's completely unrelated. |
Seems like we are doing the same, I am however using a patch for Firefox, to allow this #1436 , and doing some other stuff regarding extensions :) Maybe we could combine it into one? |
Nixpkgs doesn't include Firefox betas, so I use Mozilla's Nix overlay,
which wouldn't include this patch. I'd prefer it to be upstreamed.
…On Tue, Aug 11, 2020, 5:01 PM eyJhb ***@***.***> wrote:
Seems like we are doing the same, I am however using a patch for Firefox,
to allow this #1436 <#1436> ,
and doing some other stuff regarding extensions :)
Maybe we could combine it into one?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1434 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7X32MLYQ55H7XAZSBAFBLSAGWQ3ANCNFSM4PYWWKBQ>
.
|
Not sure how that is related to what I wrote above, as what you are currently doing with XDG_RUNTIME_DIR is possible with the current Firefox in nixpkgs. Still, not sure what that comments mean regards the two PRs for this functionality in HM |
I was referring to why I'd prefer the XDG_RUNTIME_DIR solution. It might've
made more sense as a comment on your PR.
…On Tue, Aug 11, 2020, 5:09 PM eyJhb ***@***.***> wrote:
Not sure how that is related to what I wrote above, as what you are
currently doing with XDG_RUNTIME_DIR is possible with the current Firefox
in nixpkgs.
Still, not sure what that comments mean regards the two PRs for this
functionality in HM
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1434 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7X32PFE6XGQ2ICACHDYODSAGXQTANCNFSM4PYWWKBQ>
.
|
Thinking of implementing both, as that would be fairly easy to give the choice :) |
The same is now supported in the other PR, without all the rebuild, mkDerivation, etc. + individual policies if wanted. |
I will let @rycee comment on this since firefox configuration is his thing :D |
Thank you for your contribution! I marked this pull request as stale due to inactivity. If this remains inactive for another 7 days, I will close this PR. Please read the relevant sections below before commenting. If you are the original author of the PR
If you are not the original author of the issue
|
I'm still using this myself, but it's probably best to rewrite it based on NixOS/nixpkgs#91724. |
Description
This probably isn't the cleanest way to write this code, but it does work. The benefit of this over sideloading is that the extensions are automatically enabled, and there aren't any warnings. The DisableAppUpdate policy normally comes from the system policies.json, which we override.
Checklist
Change is backwards compatible.
Code formatted with
./format
.Code tested through
nix-shell --pure tests -A run.all
.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Added myself as module maintainer. See example.
Added myself and the module files to
.github/CODEOWNERS
.