hardware.nix 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
  10. boot.initrd.kernelModules = [ ];
  11. boot.kernelModules = [ "kvm-amd" ];
  12. boot.extraModulePackages = [ ];
  13. fileSystems."/" =
  14. { device = "/dev/disk/by-uuid/7bddf24c-4507-40d8-a61f-6e990d95922f";
  15. fsType = "btrfs";
  16. };
  17. fileSystems."/home" =
  18. { device = "/dev/disk/by-uuid/7bddf24c-4507-40d8-a61f-6e990d95922f";
  19. fsType = "btrfs";
  20. options = [ "subvol=home" ];
  21. };
  22. fileSystems."/nix" =
  23. { device = "/dev/disk/by-uuid/7bddf24c-4507-40d8-a61f-6e990d95922f";
  24. fsType = "btrfs";
  25. options = [ "subvol=nix" ];
  26. };
  27. fileSystems."/boot" =
  28. { device = "/dev/disk/by-uuid/0C57-3FAF";
  29. fsType = "vfat";
  30. options = [ "fmask=0077" "dmask=0077" ];
  31. };
  32. swapDevices = [ ];
  33. nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
  34. hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
  35. }