<commit_before>{ pkgs, ... }:

{

  nixpkgs.config = import <dotfig/nix/pkgs/config.nix>;

  networking.hostName = "nixos";
  networking.hostId = "c890f48c";

  networking.firewall = {
    enable = true;
    allowedTCPPorts = [ 8080 ];
  };


  users.extraUsers = {
    nick = {
      isNormalUser = true;
      uid = 1000;
      extraGroups = [ "wheel" "networkmanager" "transmission" ];
    };
  };
  security.sudo = {
    wheelNeedsPassword = false;
    extraConfig = ''
      Defaults env_keep += "NIX_PATH"
      Defaults env_keep += "VISUAL"
      Defaults env_keep += "EDITOR"
      Defaults env_keep += "CFGDIR"
      Defaults env_keep += "VIM"
      Defaults env_keep += "VIMRUNTIME"
      Defaults env_keep += "VIMBUNDLE"
      Defaults env_keep += "VIM_PLUGIN_PATH"
    '';
  };

  environment.variables = rec {
    VISUAL = "vim";
    EDITOR = "vim";
    BROWSER = "chromium";
    CFGDIR = "/cfg";
    VIM = CFGDIR + "/dotfiles/config/vim";
    VIMRUNTIME = "${pkgs.vimHugeX}/share/vim/vim74";
    VIMBUNDLE = CFGDIR + "/vim-bundle/bundle";
    VIM_PLUGIN_PATH = "${pkgs.vimPlugins.youcompleteme}/share/vim-plugins/youcompleteme";
    FZF_DEFAULT_OPTS = "--reverse";
  };

  environment.extraInit = ''
    export PATH="$PATH:$CFGDIR/dotfiles/bin:$CFGDIR/dotfiles/bin/linux:$CFGDIR/local/bin"
    export NIX_PATH="$NIX_PATH:dotfig=$CFGDIR/dotfiles/config"
  '';

  # environment.etc = {
  #   "tmux.conf" = {
  #     source = <dotfig/multiplexers/tmux.conf>;
  #   };
  #   "inputrc" = { # or INPUTRC
  #     source = <dotfig/line-editors/inputrc>;
  #   };
  # };

}
<commit_msg>generalize vim version<commit_after>{ pkgs, ... }:

{

  nixpkgs.config = import <dotfig/nix/pkgs/config.nix>;

  networking.hostName = "nixos";
  networking.hostId = "c890f48c";

  networking.firewall = {
    enable = true;
    allowedTCPPorts = [ 8080 ];
  };

  users.extraUsers = {
    nick = {
      isNormalUser = true;
      uid = 1000;
      extraGroups = [ "wheel" "networkmanager" "transmission" ];
    };
  };

  security.sudo = {
    wheelNeedsPassword = false;
    extraConfig = ''
      Defaults env_keep += "NIX_PATH"
      Defaults env_keep += "VISUAL"
      Defaults env_keep += "EDITOR"
      Defaults env_keep += "CFGDIR"
      Defaults env_keep += "VIM"
      Defaults env_keep += "VIMRUNTIME"
      Defaults env_keep += "VIMBUNDLE"
      Defaults env_keep += "VIM_PLUGIN_PATH"
    '';
  };

  environment.variables = rec {
    VISUAL = "vim";
    EDITOR = "vim";
    BROWSER = "chromium";
    CFGDIR = "/cfg";
    VIM = CFGDIR + "/dotfiles/config/vim";
    VIMBUNDLE = CFGDIR + "/vim-bundle/bundle";
    VIM_PLUGIN_PATH = "${pkgs.vimPlugins.youcompleteme}/share/vim-plugins/youcompleteme";
    FZF_DEFAULT_OPTS = "--reverse";
  };

  environment.extraInit = ''
    export PATH="$PATH:$CFGDIR/dotfiles/bin:$CFGDIR/dotfiles/bin/linux:$CFGDIR/local/bin"
    export NIX_PATH="$NIX_PATH:dotfig=$CFGDIR/dotfiles/config"
    export VIMRUNTIME="${pkgs.vimHugeX}/share/vim/vim[0-9][0-9]";
  '';

  # environment.etc = {
  #   "tmux.conf" = {
  #     source = <dotfig/multiplexers/tmux.conf>;
  #   };
  #   "inputrc" = { # or INPUTRC
  #     source = <dotfig/line-editors/inputrc>;
  #   };
  # };

}

{'fraction_non_alphanumeric': 0.15917602996254682, 'fraction_numerical': 0.009987515605493134, 'mean_word_length': 2.7794811320754715, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4648229', 'n_tokens_mistral': 1276, 'n_tokens_neox': 1194, 'n_words': 178}