nixos/systems/aurora.nix
Julian Sutter 959a4e0f79 updates
2023-03-23 12:15:59 -07:00

31 lines
833 B
Nix

{ config, lib, pkgs, modulesPath, ... }:
{
networking.hostName = "aurora";
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
fileSystems."/mnt/data" =
{ device = "/dev/disk/by-label/data";
fsType = "btrfs";
};
services.xserver.videoDrivers = [ "amdgpu" ];
#scaling
#services.xserver.dpi = 227;
hardware.opengl.extraPackages = with pkgs; [
rocm-opencl-icd
rocm-opencl-runtime
amdvlk
];
hardware.opengl.driSupport = true;
hardware.opengl.driSupport32Bit = true;
}