nixos/systems/aurora.nix
2024-11-30 19:05:02 -08:00

35 lines
851 B
Nix
Executable file

{ 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-partlabel/data";
# fsType = "ext4";
# };
services.xserver.videoDrivers = [ "amdgpu" ];
#scaling
#services.xserver.dpi = 227;
# hardware.graphics.extraPackages = with pkgs; [
# rocm-opencl-icd
# rocm-opencl-runtime
# amdvlk
# ];
networking.bridges = {
"br0" = {
interfaces = [ "eth0" ];
};
};
}