<commit_before># Common configuration across systems. This should be required by
# configuration.$HOSTNAME.nix files.

{ config, pkgs, options, ... }:

{
  imports = [
    <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
    <home-manager/nixos>
  ];

  nix = {
    nixPath = options.nix.nixPath.default ++ [
      "config=/etc/dotfiles/config"
      "packages=/etc/dotfiles/packages"
    ];
    autoOptimiseStore = true;
    trustedUsers = [ "root" "@wheel" ];
  };
  # Forgive me Stallman senpai
  nixpkgs.config.allowUnfree = true;

  # Nothing in /tmp should survive a reboot
  boot.cleanTmpDir = true;
  # Use simple bootloader; I prefer the on-demand BIOs boot menu
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;

  environment = {
    systemPackages = with pkgs; [
      # Just the bear necessities~
      libqalculate
      coreutils
      git
      killall
      unzip
      vim
      wget
      # Support for extra filesystems
      sshfs
      exfat
      ntfs3g
      hfsprogs
    ];
    # These are the defaults, but some applications are buggy when these lack
    # explicit values.<commit_msg>Add pkgs.unstable for easy access to latest nixpkgs<commit_after># Common configuration across systems. This should be required by
# configuration.$HOSTNAME.nix files.

{ config, pkgs, options, ... }:

{
  imports = [
    <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
    <home-manager/nixos>
  ];

  nix = {
    nixPath = options.nix.nixPath.default ++ [
      "config=/etc/dotfiles/config"
      "packages=/etc/dotfiles/packages"
    ];
    autoOptimiseStore = true;
    trustedUsers = [ "root" "@wheel" ];
  };
  nixpkgs.config = {
    # Forgive me Stallman senpai
    allowUnfree = true;

    packageOverrides = pkgs: {
      unstable = import <nixpkgs-unstable> {
        config = config.nixpkgs.config;
      };
    };
  };

  # Nothing in /tmp should survive a reboot
  boot.cleanTmpDir = true;
  # Use simple bootloader; I prefer the on-demand BIOs boot menu
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;

  environment = {
    systemPackages = with pkgs; [
      # Just the bear necessities~
      libqalculate
      coreutils
      git
      killall
      unzip
      vim
      wget
      # Support for extra filesystems
      sshfs
      exfat
      ntfs3g
      hfsprogs
    ];
    # These are the defaults, but some applications are buggy when these lack
    # explicit values.
{'fraction_non_alphanumeric': 0.0968, 'fraction_numerical': 0.0008, 'mean_word_length': 2.4930167597765363, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '6455254', 'n_tokens_mistral': 850, 'n_tokens_neox': 796, 'n_words': 202}