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 {
|
nixpkgs.pkgs = import nixpkgs {
|
||||||
inherit overlays system;
|
inherit overlays system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
config.nvidia.acceptLicense = true;
|
||||||
};
|
};
|
||||||
networking.hostName = name;
|
networking.hostName = name;
|
||||||
})
|
})
|
||||||
|
@ -14,6 +14,15 @@
|
|||||||
|
|
||||||
networking.hostId = "cf791898";
|
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 = {
|
modules = {
|
||||||
desktop = {
|
desktop = {
|
||||||
browsers = {
|
browsers = {
|
||||||
|
@ -8,7 +8,10 @@
|
|||||||
boot = {
|
boot = {
|
||||||
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
kernelModules = [ "applesmc" "kvm-intel" "wl" ];
|
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;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
@ -17,6 +20,11 @@
|
|||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
nvidia = {
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
|
||||||
|
modesetting.enable = true;
|
||||||
|
powerManagement.enable = true;
|
||||||
|
};
|
||||||
opengl = {
|
opengl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user