From 6475f8098245dac95bfea7a1b138d671ae6e49f9 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 13 Dec 2024 22:05:30 +0100 Subject: [PATCH] kasei: switch back to nvidia drivers --- hosts/kasei/configuration.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/hosts/kasei/configuration.nix b/hosts/kasei/configuration.nix index 5f5a195..0e4a971 100644 --- a/hosts/kasei/configuration.nix +++ b/hosts/kasei/configuration.nix @@ -79,7 +79,7 @@ services = { openssh.enable = true; - xserver.videoDrivers = [ "amdgpu" ]; + xserver.videoDrivers = [ "nvidia" ]; tailscale.enable = true; avahi = { enable = true; @@ -95,11 +95,8 @@ boot = { initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ]; - initrd.kernelModules = [ "amdgpu" ]; - # kernelPackages = pkgs.linuxKernel.packages.linux_zen.zfs; kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; - kernelModules = [ "kvm-amd" ]; supportedFilesystems = [ "zfs" ]; loader = { @@ -144,10 +141,12 @@ enableRedistributableFirmware = true; keyboard.zsa.enable = true; sane.enable = true; - opengl = { - enable = true; - driSupport = true; - driSupport32Bit = true; + + nvidia = { + modesetting.enable = true; + open = false; + nvidiaSettings = true; + package = config.boot.kernelPackages.nvidiaPackages.beta; }; }; }