From 0caa3c75c8a12346bd582dc8ff39bac60cf8bfbc Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Mon, 29 Apr 2024 23:26:22 +0200 Subject: [PATCH] attempt trippy internet patches --- hosts/default/configuration.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index 0f093dc..6286d86 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -14,6 +14,7 @@ # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.kernelParams = [ "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ]; # LOVE me some blob hardware.enableRedistributableFirmware = true; @@ -22,7 +23,8 @@ hardware.opengl = { enable = true; - driSupport = true; + driSupport = false; + package = config.hardware.nvidia.package; }; services.xserver.videoDrivers = [ "nvidia" ]; @@ -41,8 +43,6 @@ nvidiaSettings = true; }; - config.nvidia.acceptLicense = true; - networking = { hostName = "lambdaOS"; # Define your hostname. extraHosts = '' @@ -142,7 +142,10 @@ }; # Allow unfree packages - nixpkgs.config.allowUnfree = true; + nixpkgs.config = { + allowUnfree = true; + nvidia.acceptLicense = true; + }; # List packages installed in system profile. To search, run: # $ nix search wget