feat: update flake

This commit is contained in:
Yadunand Prem 2024-04-23 23:41:36 +08:00
parent 89eb024d1e
commit 20b6a552c9
No known key found for this signature in database

View File

@ -2,7 +2,7 @@
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
@ -11,26 +11,31 @@
inherit system;
config = {
allowUnfree = true;
cudaSupport = true;
};
};
in rec {
}; in rec {
overlays = [(final: prev: {
pythonPackagesExtensions = [(py-final: py-prev: {
torch = py-final.torch-bin;
torchvision = py-final.torchvision-bin;
torchaudio = py-final.torchaudio-bin;
})];
})];
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
cudaPackages.cudatoolkit
(python3.withPackages(ps: with ps; [
(python3.withPackages(ps: with ps;
[
ipython
jupyter
numpy
pandas
matplotlib
torch
scikit-learn
timeout-decorator
torchvision
matplotlib
torch
scikit-learn
timeout-decorator
torchvision
seaborn
]))
];
shellHook = "jupyter notebook --ip='100.64.0.8'";
};
}
);