Skip to content

Instantly share code, notes, and snippets.

@ivan
Created April 29, 2019 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivan/42c9126d5471aca10a4f44b0089ac0ad to your computer and use it in GitHub Desktop.
Save ivan/42c9126d5471aca10a4f44b0089ac0ad to your computer and use it in GitHub Desktop.
# nvidia-uvm needs to be loaded for CUDA applications
systemd.services.modprobe-nvidia-uvm = {
description = "Load nvidia-uvm after boot";
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.kmod}/bin/modprobe nvidia-uvm";
};
wantedBy = [ "multi-user.target" ];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment