Created
November 28, 2024 15:11
-
-
Save Mic92/abe22556324ed67155a1cb48f14adf84 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, config, ... }: | |
{ | |
nixpkgs.config.allowUnfree = true; | |
nixpkgs.config.nvidia.acceptLicense = true; | |
# enable the nvidia driver | |
services.xserver.videoDrivers = [ "nvidia" ]; | |
hardware.opengl.enable = true; | |
hardware.nvidia.datacenter.enable = true; | |
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.dc_535; | |
hardware.nvidia.open = true; | |
virtualisation.docker.enable = true; | |
hardware.nvidia-container-toolkit.enable = true; | |
hardware.opengl.driSupport32Bit = true; | |
# QEMU options | |
#virtualisation.qemu.options = []; | |
nixos-shell.mounts.extraMounts = { | |
# override options for each mount | |
"/llm-os" = { | |
target = ../.; | |
cache = "none"; | |
}; | |
}; | |
environment.systemPackages = [ config.boot.kernelPackages.nvidia_x11 ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment