<commit_before>{ config, options, pkgs, ... }:

{
  imports = [
    ../../system/common.nix
    ../../system/graphical/x.nix
    ../../system/libinput.nix
    ../../system/steam.nix
    ../../../hardware-configuration.nix # Include the results of the hardware scan.
    <nixos-hardware/dell/xps/15-9550> # from the nixos-hardware repo
  ];

  networking.hostName = "jcericson-2016-nixos"; # Define your hostname.

  networking.hostId = "a22fc14c";

  environment.systemPackages = with pkgs; [
    fbterm # compensate for UHD
  ];

  hardware.nvidiaOptimus.disable = true;

  nix.maxJobs = 2;
  nix.buildCores = 8;

  services.xserver.videoDrivers = [
      "displaylink"
    ] ++ options.services.xserver.videoDrivers.default;

  # This value determines the NixOS release with which your system is to be
  # compatible, in order to avoid breaking some software such as database
  # servers. You should change this only after NixOS release notes say you
  # should.
  system.stateVersion = "16.03";
}<commit_msg>Finally get some NVIDIA offloading to work!<commit_after>{ config, options, pkgs, ... }:

{
  imports = [
    ../../system/common.nix
    ../../system/graphical/x.nix
    ../../system/libinput.nix
    ../../system/steam.nix
    ../../../hardware-configuration.nix # Include the results of the hardware scan.
    <nixos-hardware/dell/xps/15-9550> # from the nixos-hardware repo
  ];

  networking.hostName = "jcericson-2016-nixos"; # Define your hostname.

  networking.hostId = "a22fc14c";

  environment.systemPackages = with pkgs; [
    fbterm # compensate for UHD
    (pkgs.writeShellScriptBin "nvidia-offload" ''
      export __NV_PRIME_RENDER_OFFLOAD=1
      export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
      export __GLX_VENDOR_LIBRARY_NAME=nvidia
      export __VK_LAYER_NV_optimus=NVIDIA_only
      exec -a "$0" "$@"
    '')
  ];

  nix.maxJobs = 2;
  nix.buildCores = 8;

  services.xserver.videoDrivers = [
    #"displaylink"
    #"intel"
    "nvidia"
  ];
  #] ++ options.services.xserver.videoDrivers.default;

  hardware.nvidia.prime = {
    offload.enable = true;

    # Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
    nvidiaBusId = "PCI:1:0:0";

    # Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
    intelBusId = "PCI:0:2:0";
  };

  # This value determines the NixOS release with which your system is to be
  # compatible, in order to avoid breaking some software such as database
  # servers. You should change this only after NixOS release notes say you
  # should.
  system.stateVersion = "16.03";
}
{'fraction_non_alphanumeric': 0.1228878648233487, 'fraction_numerical': 0.019585253456221197, 'mean_word_length': 2.893871449925262, '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': '4724440', 'n_tokens_mistral': 948, 'n_tokens_neox': 873, 'n_words': 228}