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 = [ ];