repos / pgit

staticsitegeneratorforgit
git clone https://go.com

Triple oh  ·  2025-09-08

hardware-configuration.nix

 1{
 2  config,
 3  lib,
 4  pkgs,
 5  modulesPath,
 6  ...
 7}: {
 8  imports = [
 9    (modulesPath + "/installer/scan/not-detected.nix")
10  ];
11
12  boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usbhid" "sd_mod" "rtsx_pci_sdmmc"];
13  boot.initrd.kernelModules = ["dm-snapshot"];
14  boot.kernelModules = ["kvm-intel"];
15  boot.extraModulePackages = [];
16
17  fileSystems."/" = {
18    device = "/dev/disk/by-uuid/NIXROOT";
19    fsType = "btrfs";
20  };
21
22  fileSystems."/efi" = {
23    device = "/dev/disk/by-uuid/NIXEFI";
24    fsType = "vfat";
25    options = ["fmask=0022" "dmask=0022"];
26  };
27
28  swapDevices = [
29    {device = "/dev/mapper/NIXSWAP";}
30  ];
31
32  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
33  hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
34}