nvidia cuda shit
This commit is contained in:
parent
85be037f86
commit
d5388679c9
1 changed files with 20 additions and 2 deletions
|
|
@ -172,8 +172,26 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Or disable the firewall altogether.
|
# List packages installed in system profile. To search by name, run:
|
||||||
# networking.firewall.enable = false;
|
# $ nix-env -qaP | grep wget
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
pciutils
|
||||||
|
file
|
||||||
|
|
||||||
|
gnumake
|
||||||
|
gcc
|
||||||
|
|
||||||
|
cudatoolkit
|
||||||
|
];
|
||||||
|
|
||||||
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
|
||||||
|
systemd.services.nvidia-control-devices = {
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
serviceConfig.ExecStart = "${pkgs.linuxPackages.nvidia_x11.bin}/bin/nvidia-smi";
|
||||||
|
};
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue