Code Monkey home page Code Monkey logo

nur-packages's People

Contributors

dependabot[bot] avatar mainrs avatar mic92 avatar sigprof avatar sigprof[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nur-packages's Issues

Reporting a vulnerability

Hello!

I hope you are doing well!

We are a security research team. Our tool automatically detected a vulnerability in this repository. We want to disclose it responsibly. GitHub has a feature called Private vulnerability reporting, which enables security research to privately disclose a vulnerability. Unfortunately, it is not enabled for this repository.

Can you enable it, so that we can report it?

Thanks in advance!

PS: you can read about how to enable private vulnerability reporting here: https://docs.github.com/en/code-security/security-advisories/repository-security-advisories/configuring-private-vulnerability-reporting-for-a-repository

Firefox can't find installed langpacks

The way the langpacks are currently installed, Firefox is unable to find them by default.

They get installed to share/mozilla/extensions/... as defined in

installFilePath = "share/mozilla/extensions/${app.extensionDir}/${addonId}.xpi";

However, I believe the correct path for the applications to pick up the extensions automatically is lib/${mozAppName}/browser/extensions/${addonId}.xpi for the Firefox packages and lib/${mozAppName}/extensions/${addonId}.xpi for Thunderbird, so this requires some additional logic for the path. Please note that I haven't actually tried this, but rather deducted from the current filesystem layout and how other distributions do it.

Anyone looking for a temporary solution to have Firefox pick up this package automatically, a workaround is the following:

programs.firefox = {
  enable = true;
  package = pkgs.firefox;
  policies = {
    "ExtensionSettings" = {
      "[email protected]" = {
        "installation_mode" = "force_installed";
        "install_url" = "file:///run/current-system/sw/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/[email protected]";
      };
    };
    "RequestedLocales" = "de,en-US";
  };
};

or, in a slightly more Nix way:

  programs.firefox.policies.ExtensionSettings."[email protected]" = {
          "installation_mode" = "force_installed";
          "install_url" = "file://${config.nur.repos.sigprof.firefox-langpack-de}/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/[email protected]";
        };

The latter doesn't need a package in environment.systemPackages.

This will set your Firefox to German by default. However, this copies the xpi file to the respective profile instead of just using the one available on the system directly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.