Use nvidia 470 legacy driver on hypnos
All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m36s

This commit is contained in:
Jordan Holt 2024-06-22 17:50:00 +01:00
parent 82e7157434
commit 2384fc9224
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520
3 changed files with 19 additions and 1 deletions

View File

@ -77,6 +77,7 @@
nixpkgs.pkgs = import nixpkgs {
inherit overlays system;
config.allowUnfree = true;
config.nvidia.acceptLicense = true;
};
networking.hostName = name;
})

View File

@ -14,6 +14,15 @@
networking.hostId = "cf791898";
# nvidia 470 driver doesn't work with Wayland
services.xserver = {
displayManager.gdm.wayland = lib.mkForce false;
videoDrivers = [ "nvidia" ];
};
# Workaround for label rendering bug in GTK4 with nvidia 470 driver
environment.sessionVariables.GSK_RENDERER = "gl";
modules = {
desktop = {
browsers = {

View File

@ -8,7 +8,10 @@
boot = {
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
kernelModules = [ "applesmc" "kvm-intel" "wl" ];
extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
extraModulePackages = [
config.boot.kernelPackages.broadcom_sta
config.boot.kernelPackages.nvidiaPackages.legacy_470
];
};
networking.useDHCP = lib.mkDefault true;
@ -17,6 +20,11 @@
hardware = {
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
modesetting.enable = true;
powerManagement.enable = true;
};
opengl = {
enable = true;
extraPackages = with pkgs; [