diff options
author | Ben Sima <ben@bsima.me> | 2023-10-18 13:49:52 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2023-10-27 10:24:07 -0400 |
commit | 2be88dd9ec52e9fdbb2d7c02c154b7482c47aabf (patch) | |
tree | 5e081e0fafce49c65b776e50b58e1365e10f7f5d /Biz/Dev/Beryllium | |
parent | 4796ca6dba1e4df43a2a149ea1425c08567927a1 (diff) |
Use nvidia GPU for graphics
Even though I have 64 cpus, when I use them all for compilation, the UI still
lags, so that's annoying. Until I start using this for inference full-time,
offload the UI stuff to the GPU.
Diffstat (limited to 'Biz/Dev/Beryllium')
-rw-r--r-- | Biz/Dev/Beryllium/Configuration.nix | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Biz/Dev/Beryllium/Configuration.nix b/Biz/Dev/Beryllium/Configuration.nix index 8b81a0e..712f2eb 100644 --- a/Biz/Dev/Beryllium/Configuration.nix +++ b/Biz/Dev/Beryllium/Configuration.nix @@ -71,12 +71,16 @@ # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; - #services.xserver.videoDrivers = [ "nvidia" ]; - #hardware.nvidia.nvidiaPersistenced = true; - #hardware.nvidia.modesetting.enable = true; - #hardware.nvidia.powerManagement.enable = false; - #hardware.nvidia.open = true; - #hardware.nvidia.nvidiaSettings = true; + hardware.opengl.enable = true; + hardware.opengl.driSupport = true; + hardware.opengl.driSupport32Bit = true; + services.xserver.videoDrivers = [ "nvidia" ]; + hardware.nvidia.nvidiaPersistenced = true; + hardware.nvidia.modesetting.enable = true; + hardware.nvidia.powerManagement.enable = false; + hardware.nvidia.powerManagement.finegrained = false; + hardware.nvidia.open = true; + hardware.nvidia.nvidiaSettings = true; # Define a user account. Don't forget to set a password with ‘passwd’. #users.users.ben = { @@ -108,6 +112,7 @@ # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ + nvtop # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. # wget ]; |