mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 16:31:54 -05:00
54 lines
1.2 KiB
Nix
54 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 = {
|
||
enable = true;
|
||
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";
|
||
}
|