nvidia cuda shit

This commit is contained in:
Noa Aarts 2025-03-25 02:29:46 +01:00
parent 85be037f86
commit d5388679c9
Signed by: noa
GPG key ID: 1850932741EFF672

View file

@ -172,8 +172,26 @@
};
};
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# List packages installed in system profile. To search by name, run:
# $ 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
# settings for stateful data, like file locations and database versions