nixos-dots

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

harware-unencrypted.nix (888B)


      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" ];
     11   boot.kernelModules = [ "kvm-amd" ];
     12   boot.extraModulePackages = [ ];
     13 
     14   fileSystems."/" =
     15     {
     16       device = "/dev/disk/by-uuid/69e780cc-9ee1-4987-99eb-6c452ae66855";
     17       fsType = "ext4";
     18     };
     19 
     20   fileSystems."/boot" =
     21     {
     22       device = "/dev/disk/by-uuid/7000-6EA2";
     23       fsType = "vfat";
     24       options = [ "fmask=0022" "dmask=0022" ];
     25     };
     26 
     27   swapDevices =
     28     [
     29       { device = "/dev/disk/by-uuid/fb532c05-67d1-4983-a518-e2616369b6ae"; }
     30     ];
     31 
     32   nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
     33   hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
     34 }