Skip to content

Set allowUnfree to false by default #2134

Closed

Description

@edolstra

The allowUnfree configuration flag in Nixpkgs is currently set to true. It should be set to false (at least in NixOS) to prevent people from depending on unfree software by accident. This should make it less controversial to include Nix expressions and NixOS modules for unfree software, since they cannot cause users to end up with an unfree system unless they explicitly ask for it.

(Note that allowUnfree does permit redistributable firmware packages at the moment, which is probably unavoidable for the foreseeable future.)

Activity

  1. added this to the 14.04 milestone on Apr 5, 2014
  2. self-assigned this
    on Apr 5, 2014
  3. added a commit that references this issue on Apr 8, 2014
    34f0e50
  4. vcunat commented on Apr 8, 2014

    @vcunat
    Member

    So something like this commit? vcunat@34f0e50

    BTW, I believe all similar throws should indicate how to override these checks. Shall I prepare a similar commit for that?

  5. bluescreen303 commented on Apr 8, 2014

    @bluescreen303
    Contributor

    So is there gonna be a distinction between unfree and undistributable?
    What about software that is redistributable but doesn't have a fully libre license?
    And binary stuff like nvidia-x11 ?

  6. vcunat commented on Apr 8, 2014

    @vcunat
    Member

    There is "unfree-redistributable" already (and built by Hydra currently).

  7. bluescreen303 commented on Apr 8, 2014

    @bluescreen303
    Contributor

    But will we need allowUnfree = true for those as well?

  8. edolstra commented on Apr 8, 2014

    @edolstra
    MemberAuthor

    Yes.

  9. edolstra commented on Apr 8, 2014

    @edolstra
    MemberAuthor

    It turned out to be slightly more complicated than changing the default to false (due to the f-prot module causing the unconditional evaluation of the unfree f-prot package, and pkgs_i686 complications), but it's done.

  10. bluescreen303 commented on Apr 9, 2014

    @bluescreen303
    Contributor

    I think we should also decide some rule that packages/modules should never use/check allowUnfree. If a user needs to enable this because he needs the nvidia binary driver, this should not mean packages decide to also include proprietary plugins automatically.

    IMHO this is just a simple toggle for users, which makes more stuff available.
    If needed, we can create some enableUnfreeFunctionalityByDefault option, but I think this should be decided on a case-by-case basis.

  11. vcunat commented on Apr 11, 2014

    @vcunat
    Member

    @edolstra: is there a reason not to provide more helpful error messages? (as suggested above) Currently it just states that you can't use the package (because it's unfree, marked as broken, etc.). I do believe it should point to information how to override this.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions