diff options
| -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; |
