about summary refs log blame commit diff
path: root/users/wpcarro/nixos/marcus/hardware.nix
blob: 8a2672206b50694441658ccd11842524161bac4e (plain) (tree)
1
2
3
4
5
6
7
8
9


                                        


                                                      

                                                                                    
                                  
                                       
                                 
 
                     
                                        

                    
 
                         
                                       

                    
 


                                       



                                                                                                   
{ config, lib, pkgs, modulesPath, ... }:

{
  imports = [
    (modulesPath + "/installer/scan/not-detected.nix")
  ];

  boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
  boot.initrd.kernelModules = [ ];
  boot.kernelModules = [ "kvm-intel" ];
  boot.extraModulePackages = [ ];

  fileSystems."/" = {
    device = "/dev/disk/by-label/nixos";
    fsType = "ext4";
  };

  fileSystems."/boot" = {
    device = "/dev/disk/by-label/boot";
    fsType = "vfat";
  };

  swapDevices = lib.singleton {
    device = "/dev/disk/by-label/swap";
  };

  powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
  hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}