use flake for direnv templates by default

This commit is contained in:
2026-06-18 20:42:36 +02:00
parent e974cceec6
commit 82eaa21709
7 changed files with 139 additions and 31 deletions
+23
View File
@@ -0,0 +1,23 @@
{
description = "Python dev shell";
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; };
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
pyright
black
python3Packages.flake8
# add project-specific packages below
];
};
});
}