Skip to content

Instantly share code, notes, and snippets.

@Mic92
Created November 28, 2024 15:11
Show Gist options
  • Save Mic92/abe22556324ed67155a1cb48f14adf84 to your computer and use it in GitHub Desktop.
Save Mic92/abe22556324ed67155a1cb48f14adf84 to your computer and use it in GitHub Desktop.
{ 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