hardware.nix 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Do not modify this file! It was generated by ‘nixos-generate-config’
  2. # and may be overwritten by future invocations. Please make changes
  3. # to /etc/nixos/configuration.nix instead.
  4. { config, lib, pkgs, modulesPath, ... }:
  5. {
  6. imports =
  7. [ (modulesPath + "/installer/scan/not-detected.nix")
  8. ];
  9. boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
  10. boot.initrd.kernelModules = [ ];
  11. boot.kernelModules = [ "kvm-intel" ];
  12. boot.extraModulePackages = [ ];
  13. fileSystems."/" =
  14. { device = "/dev/disk/by-uuid/b383ef34-9235-4445-aa92-7addbad0f947";
  15. fsType = "btrfs";
  16. };
  17. fileSystems."/home" =
  18. { device = "/dev/disk/by-uuid/b383ef34-9235-4445-aa92-7addbad0f947";
  19. fsType = "btrfs";
  20. options = [ "subvol=home" ];
  21. };
  22. fileSystems."/nix" =
  23. { device = "/dev/disk/by-uuid/b383ef34-9235-4445-aa92-7addbad0f947";
  24. fsType = "btrfs";
  25. options = [ "subvol=nix" ];
  26. };
  27. fileSystems."/boot" =
  28. { device = "/dev/disk/by-uuid/0F10-BDE7";
  29. fsType = "vfat";
  30. options = [ "fmask=0077" "dmask=0077" ];
  31. };
  32. swapDevices =
  33. [ { device = "/dev/disk/by-uuid/79e1dbf5-5469-466b-bf3f-7de192644f09"; }
  34. ];
  35. nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
  36. hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
  37. }