From 2aaa130b73582f26f8d562363e63cc0095366a6f Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sat, 27 Jan 2024 13:55:47 +0530 Subject: update nvidia --- configuration.nix | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'configuration.nix') diff --git a/configuration.nix b/configuration.nix index e521aa6..8e08ea9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -6,7 +6,30 @@ ]; + hardware.opengl = { + enable = true; + driSupport = true; + driSupport32Bit = true; + }; + + services.xserver.videoDrivers = ["nvidia"]; + + hardware.nvidia = { + modesetting.enable = true; + powerManagement.enable = false; + powerManagement.finegrained = false; + open = false; + nvidiaSettings = true; + package = config.boot.kernelPackages.nvidiaPackages.stable; + + prime = { + intelBusId = "PCI:0:2:0"; + nvidiaBusId = "PCI:1:0:0"; + }; + }; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nixpkgs.config.allowUnfree = true; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; @@ -24,8 +47,6 @@ time.timeZone = "Asia/Kolkata"; - nixpkgs.config.allowUnfree = true; - programs.hyprland = { enable = true; xwayland.enable = true; -- cgit v1.2.3