Started adding dev flakes for projects

This commit is contained in:
Alexandre1a 2026-02-06 11:21:59 +01:00
parent fe191b2f5d
commit 4d001d71e9
No known key found for this signature in database
GPG Key ID: CE01C28FBC5EEF10
3 changed files with 48 additions and 1 deletions

View File

@ -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
'';
};
});
}

View File

@ -20,5 +20,8 @@
cmatrix
gh
];
variables = {
EDITOR = "nvim";
};
};
}

1
result
View File

@ -1 +0,0 @@
/nix/store/5ms9zv30l2wwddv0bmxzwisjs6998hzk-vesktop-1.6.3