nixos/beta/hardware-configuration.nix

27 lines
1,001 B
Nix
Raw Normal View History

2024-07-04 13:01:45 +02:00
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ];
2024-08-20 20:31:58 +02:00
# /boot efi partition to boot in UEFI mode
2024-07-04 13:01:45 +02:00
fileSystems."/boot" =
2024-07-04 13:03:44 +02:00
{ device = "/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286-part1";
2024-07-04 13:01:45 +02:00
fsType = "vfat";
2024-08-20 20:31:58 +02:00
options = [ "fmask=0022" "dmask=0022" ];
neededForBoot = true;
};
2024-07-04 13:01:45 +02:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# amd graphics
hardware.graphics.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
2024-07-04 13:01:45 +02:00
}