Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

leo60228
Copy link

@leo60228 leo60228 commented Aug 8, 2020

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

    {component}: {description}
    
    {long description}
    

    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.

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.
@leo60228 leo60228 marked this pull request as ready for review August 8, 2020 15:39
@leo60228 leo60228 requested a review from rycee as a code owner August 8, 2020 15:39
@leo60228
Copy link
Author

leo60228 commented Aug 8, 2020

Emacs tests are failing, but that looks like it's completely unrelated.

@eyJhb
Copy link
Contributor

eyJhb commented Aug 11, 2020

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?

@leo60228
Copy link
Author

leo60228 commented Aug 11, 2020 via email

@eyJhb
Copy link
Contributor

eyJhb commented Aug 11, 2020

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

@leo60228
Copy link
Author

leo60228 commented Aug 11, 2020 via email

@eyJhb
Copy link
Contributor

eyJhb commented Aug 11, 2020

Thinking of implementing both, as that would be fairly easy to give the choice :)

@eyJhb
Copy link
Contributor

eyJhb commented Aug 12, 2020

The same is now supported in the other PR, without all the rebuild, mkDerivation, etc. + individual policies if wanted.

@teto
Copy link
Collaborator

teto commented Sep 6, 2020

I will let @rycee comment on this since firefox configuration is his thing :D

@stale
Copy link

stale bot commented Apr 28, 2021

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

  • GitHub sometimes doesn't notify people who commented / reviewed a PR previously, when you (force) push commits. If you have addressed the reviews you can officially ask for a review from those who commented to you or anyone else.
  • If it is unfinished but you plan to finish it, please mark it as a draft.
  • If you don't expect to work on it any time soon, please consider closing it with a short comment encouraging someone else to pick up your work.
  • To get things rolling again, rebase the PR against the target branch and address valid comments.

If you are not the original author of the issue

  • If you want to pick up the work on this PR, please create a new PR and indicate that it supercedes and closes this PR.

@stale stale bot added the status: stale label Apr 28, 2021
@stale stale bot closed this May 5, 2021
@leo60228
Copy link
Author

leo60228 commented May 5, 2021

I'm still using this myself, but it's probably best to rewrite it based on NixOS/nixpkgs#91724.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants