nixos-dots

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

hardware.nix (1180B)


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