diff --git a/code/flakes/python/flake.nix b/code/flakes/python/flake.nix new file mode 100644 index 0000000..691e1ae --- /dev/null +++ b/code/flakes/python/flake.nix @@ -0,0 +1,45 @@ +{ + description = "Python ML dev environment"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + }; + + python = pkgs.python311; + in + { + devShells.default = pkgs.mkShell { + name = "python-ml"; + + packages = with pkgs; [ + python + #python.pkgs.pip + #python.pkgs.virtualenv + + # ML stack + #python.pkgs.numpy + #python.pkgs.scipy + #python.pkgs.pandas + #python.pkgs.matplotlib + #python.pkgs.scikit-learn + + # Optional + #python.pkgs.jupyterlab + ]; + + shellHook = '' + echo "🐍 Python ML dev shell" + export PYTHONBREAKPOINT=ipdb.set_trace + ''; + }; + }); +} diff --git a/modules/common/environment.nix b/modules/common/environment.nix index ed25ce2..e49703a 100644 --- a/modules/common/environment.nix +++ b/modules/common/environment.nix @@ -20,5 +20,8 @@ cmatrix gh ]; + variables = { + EDITOR = "nvim"; + }; }; } diff --git a/result b/result deleted file mode 120000 index 5c004cb..0000000 --- a/result +++ /dev/null @@ -1 +0,0 @@ -/nix/store/5ms9zv30l2wwddv0bmxzwisjs6998hzk-vesktop-1.6.3 \ No newline at end of file