mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 22:03:55 -05:00
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
# 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,
|
||
inputs,
|
||
lib,
|
||
modulesPath,
|
||
pkgs,
|
||
...
|
||
}: {
|
||
imports = [
|
||
(modulesPath + "/installer/scan/not-detected.nix")
|
||
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
||
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
||
];
|
||
|
||
boot = {
|
||
initrd = {
|
||
availableKernelModules = [
|
||
"nvme"
|
||
"sd_mod"
|
||
"usb_storage"
|
||
"usbhid"
|
||
"xhci_pci"
|
||
];
|
||
kernelModules = ["amdgpu"];
|
||
};
|
||
kernelModules = ["kvm-amd" "amdgpu"];
|
||
};
|
||
|
||
hardware = {
|
||
cpu.amd.updateMicrocode =
|
||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
||
enableAllFirmware = true;
|
||
|
||
opengl = {
|
||
driSupport = true;
|
||
driSupport32Bit = true;
|
||
|
||
extraPackages = with pkgs; [rocmPackages.clr.icd amdvlk];
|
||
extraPackages32 = with pkgs; [driversi686Linux.amdvlk];
|
||
};
|
||
};
|
||
|
||
services.xserver.videoDrivers = ["amdgpu"];
|
||
|
||
networking.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
}
|