summaryrefslogtreecommitdiff
path: root/machines/khad/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/khad/configuration.nix')
-rw-r--r--machines/khad/configuration.nix22
1 files changed, 21 insertions, 1 deletions
diff --git a/machines/khad/configuration.nix b/machines/khad/configuration.nix
index 7a754cf..e2d011d 100644
--- a/machines/khad/configuration.nix
+++ b/machines/khad/configuration.nix
@@ -33,7 +33,27 @@
};
services.xserver.videoDrivers = [ "nvidia" ];
- hardware.opengl.driSupport32Bit = true;
+ hardware.opengl = {
+ enable = true;
+ # if hardware.opengl.driSupport is enabled, mesa is installed and provides Vulkan of supported hardware.
+ driSupport = true;
+ # needed by nvidia-docker
+ driSupport32Bit = true;
+ };
+ hardware.nvidia = {
+ # Optionally, you may need to select the appropriate driver version for your specific GPU.
+ # packge = config.boot.kernelPackages.nvidiaPackages.stable;
+
+ # Modesetting is needed for most Wayland compositors
+ modesetting.enable = true;
+ # Use the open source version of the kernel module
+ # Only available on driver 515.53.04+
+ open = false;
+
+ # powerManagement.enable = true;
+ };
+ # virtualization.docker.enableNvidia = true; # for nvidia-docker
+
environment.shellInit = ''export NIXPATH="/nix/var/nix/profiles/per-user/$USER/channels:nixos-config=/etc/nixos/machines/khad/configuration.nix"'';
# Set your time zone.