Use nvidia 470 legacy driver on hypnos
All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m36s
All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m36s
This commit is contained in:
parent
82e7157434
commit
2384fc9224
@ -77,6 +77,7 @@
|
||||
nixpkgs.pkgs = import nixpkgs {
|
||||
inherit overlays system;
|
||||
config.allowUnfree = true;
|
||||
config.nvidia.acceptLicense = true;
|
||||
};
|
||||
networking.hostName = name;
|
||||
})
|
||||
|
@ -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 = {
|
||||
|
@ -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; [
|
||||
|
Loading…
x
Reference in New Issue
Block a user