forked from DGNum/infrastructure
Ryan Lahfa
ebed6462f6
I will add ollama on it later on and passthrough the GPU in there. Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
8 lines
260 B
Nix
8 lines
260 B
Nix
{ config, ... }:
|
|
{
|
|
nixpkgs.config.nvidia.acceptLicense = true;
|
|
# Tesla K80 is not supported by the latest driver.
|
|
hardware.nvidia.package = config.boot.kernelPackages.nvidia_x11_legacy470;
|
|
# Don't ask.
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
}
|