Added flake.nix and stuff

This commit is contained in:
Bart Koolen 2025-10-19 11:03:33 +02:00
parent c7cac5cedd
commit f06be82927
2 changed files with 23 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.venv/
.vscode/

21
flake.nix Normal file
View file

@ -0,0 +1,21 @@
{
description = "Python dev environment using Nix";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
outputs = { self, nixpkgs }: let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
devShells.${system}.default = pkgs.mkShell {
packages = [
(pkgs.python312.withPackages (ps: with ps; [
pip
virtualenv
black
pytest
]))
];
};
};
}