diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-01-27 13:55:47 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-01-27 13:55:47 +0530 |
| commit | 2aaa130b73582f26f8d562363e63cc0095366a6f (patch) | |
| tree | def9c1ec6252b47d4b7bd6e95de4fabf06fbccef | |
| parent | cb3d8f21b6a6d606657166bff5b67dc3818cccbe (diff) | |
update nvidia
Diffstat (limited to '')
| -rw-r--r-- | configuration.nix | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/configuration.nix b/configuration.nix index e521aa6..8e08ea9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -6,7 +6,30 @@ <home-manager/nixos> ]; + 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; |
