[Nix-dev] The .nixpkgs/config.nix file and user configuration

Marc Weber marco-oweber at gmx.de
Thu May 4 08:47:42 CEST 2017


1) misc.* is best looked by using ctagsWrapped on nixpkgs then looking
  for misc. (or use grep)

  You'll find pkgs/misc/misc.nix:

    collection = {list, name} : runCommand "collection-${name}" {} ''
      mkdir -p $out/nix-support
      echo ${builtins.toString list} > $out/nix-support/propagated-user-env-packages
    '';

2)
  If you had a look at other examples you'd try such:

  { ... }:
  {

    allowUnfree = true;

    packageOverrides: p: {
      myCollection = pkgs.misc.collection {
        name = "graphic";
        list = [pkgs.vlc];
      }
    }
  }

  then you can nix-env -iA myCollection or such

Marc Weber


More information about the nix-dev mailing list