nixconf

nixos dots
git clone git://popovic.xyz/nixos.config.git
Log | Files | Refs

hardware.nix (1194B)


      1 {
      2   config,
      3   lib,
      4   modulesPath,
      5   pkgs,
      6   ...
      7 }:
      8 
      9 {
     10   imports = [
     11     (modulesPath + "/installer/scan/not-detected.nix")
     12   ];
     13 
     14   boot.initrd.availableKernelModules = [
     15     "nvme"
     16     "xhci_pci"
     17     "thunderbolt"
     18     "usbhid"
     19     "usb_storage"
     20   ];
     21   boot.initrd.kernelModules = [
     22     "dm-snapshot"
     23     "cryptd"
     24   ];
     25   boot.initrd.luks.devices."cryptroot".device =
     26     "/dev/disk/by-uuid/68d936fb-68be-4351-a557-874ef2d96efc";
     27 
     28   boot.kernelModules = [ "kvm-amd" ];
     29   boot.extraModulePackages = [ ];
     30 
     31   fileSystems."/" = {
     32     device = "/dev/disk/by-uuid/adc85ee5-286c-44aa-9dfa-4580e59687dc";
     33     fsType = "ext4";
     34   };
     35   fileSystems."/home" = {
     36     device = "/dev/disk/by-uuid/2e36575d-3dc4-4760-9bc1-9bf055371805";
     37     fsType = "ext4";
     38   };
     39 
     40   fileSystems."/boot" = {
     41     device = "/dev/disk/by-uuid/F656-048E";
     42     fsType = "vfat";
     43     options = [
     44       "fmask=0022"
     45       "dmask=0022"
     46     ];
     47   };
     48 
     49   swapDevices = [
     50     { device = "/dev/disk/by-uuid/f1c0a91f-0460-4ba8-a414-f49c90dfa399"; }
     51   ];
     52 
     53   nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
     54   hardware.enableAllFirmware = true;
     55   hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
     56 }