From 52c110a5051a3320ea119d9705286a0b9aa6e50c Mon Sep 17 00:00:00 2001 From: John Ogle Date: Sun, 16 Mar 2025 15:43:41 -0700 Subject: [PATCH] [boxy] Enhance graphics drivers --- machines/boxy/configuration.nix | 10 +++++++++- machines/boxy/hardware-configuration.nix | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/machines/boxy/configuration.nix b/machines/boxy/configuration.nix index e0a96ac..556e3fc 100644 --- a/machines/boxy/configuration.nix +++ b/machines/boxy/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page, on # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). -{ lib, ... }: +{ lib, pkgs, ... }: with lib; @@ -36,7 +36,15 @@ with lib; networking.hostName = "boxy"; # Define your hostname. + services.xserver.videoDrivers = [ "amdgpu" ]; hardware.graphics.enable = true; + hardware.graphics.enable32Bit = true; + hardware.graphics.extraPackages = with pkgs; [ + amdvlk + ]; + hardware.graphics.extraPackages32 = with pkgs; [ + driversi686Linux.amdvlk + ]; # This option defines the first version of NixOS you have installed on this particular machine, # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. diff --git a/machines/boxy/hardware-configuration.nix b/machines/boxy/hardware-configuration.nix index 614180a..d81b762 100644 --- a/machines/boxy/hardware-configuration.nix +++ b/machines/boxy/hardware-configuration.nix @@ -9,7 +9,7 @@ ]; boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "thunderbolt" "usb_storage" "usbhid" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; + boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ];