diff --git a/python/conda/flake.nix b/python/conda/flake.nix index 13665ad..3c15a31 100644 --- a/python/conda/flake.nix +++ b/python/conda/flake.nix @@ -14,21 +14,30 @@ let pkgs = import nixpkgs { inherit system; + config.allowUnfree = true; }; + + installation-steps = '' + conda-shell -c 'conda-install' + printf 'Run `conda env create --name ai-practica --file environment.yaml` and exit.\n' + conda-shell && exit + ''; + IDE-steps = '' + conda-shell -c pycharm-professional && exit + ''; + CLI-steps = '' + printf 'Enter your enviroment by running `conda activate ai-practica`.\n' + conda-shell && exit + ''; in { devShells.default = pkgs.mkShell { packages = with pkgs; [ conda + + # You might want to add an IDE of your choice; + jetbrains.pycharm-professional ]; - installation = '' - conda-shell -c 'conda-install' - printf 'Run `conda env create --name ai-practica --file environment.yaml` and exit. - conda-shell && exit - ''; - shellHook = '' - printf 'Enter your enviroment by running `conda activate ai-practica`.\n' - conda-shell && exit - ''; + shellHook = IDE-steps; }; }); }