diff --git a/Deep-SAD-PyTorch/devenv.nix b/Deep-SAD-PyTorch/devenv.nix new file mode 100644 index 0000000..65a4815 --- /dev/null +++ b/Deep-SAD-PyTorch/devenv.nix @@ -0,0 +1,24 @@ +{ pkgs, ... }: +let + native_dependencies = with pkgs.python312Packages; [ + torch-bin + torchvision-bin + aggdraw # for visualtorch + ]; + tools = with pkgs; [ + ruff + ]; +in +{ + packages = native_dependencies ++ tools; + languages.python = { + enable = true; + package = pkgs.python312; + uv = { + enable = true; + sync.enable = true; + }; + venv.enable = true; + }; + +} diff --git a/Deep-SAD-PyTorch/devenv.yaml b/Deep-SAD-PyTorch/devenv.yaml new file mode 100644 index 0000000..11887fc --- /dev/null +++ b/Deep-SAD-PyTorch/devenv.yaml @@ -0,0 +1,17 @@ +# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json +inputs: + nixpkgs: + url: github:cachix/devenv-nixpkgs/rolling + +allowUnfree: true +cudaSupport: true +# If you're using non-OSS software, you can set allowUnfree to true. +# allowUnfree: true + +# If you're willing to use a package that's vulnerable +# permittedInsecurePackages: +# - "openssl-1.1.1w" + +# If you have more than one devenv you can merge them +#imports: +# - ./backend