29 lines
742 B
Nix
Executable file
29 lines
742 B
Nix
Executable file
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
networking.hostName = "labby";
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
boot.extraModulePackages = [ ];
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
services.xserver.videoDrivers = [ ];
|
|
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
rocm-opencl-icd
|
|
rocm-opencl-runtime
|
|
];
|
|
|
|
hardware.opengl.driSupport = true;
|
|
hardware.opengl.driSupport32Bit = true;
|
|
|
|
networking.bridges = {
|
|
"br0" = {
|
|
interfaces = [ "eth0" ];
|
|
};
|
|
};
|
|
}
|