<commit_before>{ config, pkgs, lib, unstable, ... }:

{
  imports = [
    ./oh-my-zsh.nix
    ./mhuber.nix
  ];

  boot = {
    # kernelPackages = pkgs.linuxPackages_testing;
    kernelModules = [ "fuse" "kvm-intel" "coretemp" ];
    cleanTmpDir = true;
    # tmpOnTmpfs = true;
  };

  networking = {
    networkmanager.enable = true;
    firewall = {
      enable = true;
      # allowedTCPPorts = [ 80 443 ];
      allowPing = false;
    };
  };

  environment = {
    # shellInit = ''
    # '';
    # loginShellInit = ''
    # '';
    systemPackages = with pkgs; [
      kbd
      # core:
      wget curl
      git git-lfs
      unzip
      nox
      tree
      # cli:
      ranger
      emacs vim
      elinks w3m
      tmux
      manpages
      taskwarrior
      pass
      # admin:
      htop
      iftop iptraf-ng iotop mtr bind
      mkpasswd pwgen
      usbutils
      #others:
      pmount fuse
      cryptsetup
      rsnapshot
      stow
      # my backup tool
      borgbackup
    ];
    variables = { TMP = "/tmp"; };
  };

  nix = {
    useSandbox = true;
    readOnlyStore = true;

    binaryCachePublicKeys = [
       "hydra.cryp.to-1:<KEY> # crypt.to
       "hydra.snabb.co-1:zPzKSJ1mynGtYEVbUR0QVZf9TLcaygz/OyzHlWo5AMM=" # snabb.co
    ];
    trustedBinaryCaches = [
      "https://cache.nixos.org" "https://hydra.snabb.co" "http://hydra.cryp.to/"
    ];
    binaryCaches = [
      "https://cache.nixos.org" "https://hydra.snabb.co" "http://hydra.cryp.to/"
    ];

    extraOptions = ''
      gc-keep-outputs = true
      gc-keep-derivations = true
      auto-optimise-store = true
      binary-caches-parallel-connections = 10<commit_msg>install ispell<commit_after>{ config, pkgs, lib, unstable, ... }:

{
  imports = [
    ./oh-my-zsh.nix
    ./mhuber.nix
  ];

  boot = {
    # kernelPackages = pkgs.linuxPackages_testing;
    kernelModules = [ "fuse" "kvm-intel" "coretemp" ];
    cleanTmpDir = true;
    # tmpOnTmpfs = true;
  };

  networking = {
    networkmanager.enable = true;
    firewall = {
      enable = true;
      # allowedTCPPorts = [ 80 443 ];
      allowPing = false;
    };
  };

  environment = {
    # shellInit = ''
    # '';
    # loginShellInit = ''
    # '';
    systemPackages = with pkgs; [
      kbd
      # core:
      wget curl
      git git-lfs
      unzip
      nox
      tree
      # cli:
      ranger
      emacs vim
      elinks w3m
      tmux
      manpages
      taskwarrior
      pass
      # admin:
      htop
      iftop iptraf-ng iotop mtr bind
      mkpasswd <PASSWORD>
      usbutils
      #others:
      pmount fuse
      cryptsetup
      rsnapshot
      stow
      ispell
      # my backup tool
      borgbackup
    ];
    variables = { TMP = "/tmp"; };
  };

  nix = {
    useSandbox = true;
    readOnlyStore = true;

    binaryCachePublicKeys = [
       "hydra.cryp.to-1:<KEY> # crypt.to
       "hydra.snabb.co-1:zPzKSJ1mynGtYEVbUR0QVZf9TLcaygz/OyzHlWo5AMM=" # snabb.co
    ];
    trustedBinaryCaches = [
      "https://cache.nixos.org" "https://hydra.snabb.co" "http://hydra.cryp.to/"
    ];
    binaryCaches = [
      "https://cache.nixos.org" "https://hydra.snabb.co" "http://hydra.cryp.to/"
    ];

    extraOptions = ''
      gc-keep-outputs = true
      gc-keep-derivations = true
      auto-optimise-store = true
      binary-caches-parallel-connections = 10
{'fraction_non_alphanumeric': 0.127736131934033, 'fraction_numerical': 0.008395802098950524, 'mean_word_length': 1.7823185988323602, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 8, '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': '7367976', 'n_tokens_mistral': 1296, 'n_tokens_neox': 1224, 'n_words': 211}