<commit_before>/*
  Minimal example (/etc/nixos/configuration.nix):

  nixpkgs.config.nixmy = {
    NIX_MY_PKGS = "/home/matej/workarea/nixpkgs";
    NIX_USER_PROFILE_DIR = "/nix/var/nix/profiles/per-user/matej";
    NIX_MY_GITHUB = "git://github.com/matejc/nixpkgs.git";
  };
*/

{ pkgs ? import <nixpkgs> {}
, lib ? pkgs.lib
, config ? pkgs.config }:
let
  # required, see above for example
  NIX_MY_PKGS = config.nixmy.NIX_MY_PKGS;
  NIX_USER_PROFILE_DIR = config.nixmy.NIX_USER_PROFILE_DIR;
  NIX_MY_GITHUB = config.nixmy.NIX_MY_GITHUB;

  # optional
  NIXOS_CONFIG = config.nixmy.NIXOS_CONFIG or "/etc/nixos/configuration.nix";
  NIXOS_SERVICES = config.nixmy.NIXOS_SERVICES or "/etc/nixos/services";

  # if you want to use nox for your custom nixpkgs
  useNox = config.nixmy.useNox or true;

  # to add other programs to nixmy
  extraPaths = config.nixmy.extraPaths or [];

  nix = config.nixmy.nix or config.nix.package or pkgs.nix;
  NIX_PATH = "nixpkgs=${NIX_MY_PKGS}:nixos=${NIX_MY_PKGS}/nixos:nixos-config=${NIXOS_CONFIG}:services=${NIXOS_SERVICES}";

  # this is a command and not a function, to work with nox
  nixenv = pkgs.writeScriptBin "nix-env" ''
    #!${pkgs.stdenv.shell}
    ${nix}/bin/nix-env -f "${NIX_MY_PKGS}" "$@"
  '';
<commit_msg>nix package: use .out<commit_after>/*
  Minimal example (/etc/nixos/configuration.nix):

  nixpkgs.config.nixmy = {
    NIX_MY_PKGS = "/home/matej/workarea/nixpkgs";
    NIX_USER_PROFILE_DIR = "/nix/var/nix/profiles/per-user/matej";
    NIX_MY_GITHUB = "git://github.com/matejc/nixpkgs.git";
  };
*/

{ pkgs ? import <nixpkgs> {}
, lib ? pkgs.lib
, config ? pkgs.config }:
let
  # required, see above for example
  NIX_MY_PKGS = config.nixmy.NIX_MY_PKGS;
  NIX_USER_PROFILE_DIR = config.nixmy.NIX_USER_PROFILE_DIR;
  NIX_MY_GITHUB = config.nixmy.NIX_MY_GITHUB;

  # optional
  NIXOS_CONFIG = config.nixmy.NIXOS_CONFIG or "/etc/nixos/configuration.nix";
  NIXOS_SERVICES = config.nixmy.NIXOS_SERVICES or "/etc/nixos/services";

  # if you want to use nox for your custom nixpkgs
  useNox = config.nixmy.useNox or true;

  # to add other programs to nixmy
  extraPaths = config.nixmy.extraPaths or [];

  nix = config.nixmy.nix or config.nix.package.out or pkgs.nix.out;
  NIX_PATH = "nixpkgs=${NIX_MY_PKGS}:nixos=${NIX_MY_PKGS}/nixos:nixos-config=${NIXOS_CONFIG}:services=${NIXOS_SERVICES}";

  # this is a command and not a function, to work with nox
  nixenv = pkgs.writeScriptBin "nix-env" ''
    #!${pkgs.stdenv.shell}
    ${nix}/bin/nix-env -f "${NIX_MY_PKGS}" "$@"
  '';

{'fraction_non_alphanumeric': 0.1411671924290221, 'fraction_numerical': 0.0, 'mean_word_length': 3.9842829076620827, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '44816', 'n_tokens_mistral': 1127, 'n_tokens_neox': 1031, 'n_words': 181}