# Notebook hardware configuration.
#
# This file is REPLACED automatically during installation.
# The installer runs:
#   nixos-generate-config --no-filesystems --show-hardware-config
# and writes the output here before calling nixos-install.
#
# After installation, commit the generated file:
#   git add modules/_hardware/notebook-hardware.nix
#   git commit -m "add notebook hardware config"
#
# To regenerate on the installed system:
#   nixos-generate-config --no-filesystems --show-hardware-config \
#     > ~/repos/nixos/modules/_hardware/notebook-hardware.nix
{ lib, modulesPath, ... }:
{
  imports = [
    (modulesPath + "/installer/scan/not-detected.nix")
  ];

  # Filled in by the installer. These are placeholder values that allow
  # the flake to evaluate before the real hardware is detected.
  boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
  boot.kernelModules                 = [];
  boot.extraModulePackages           = [];

  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}
