ai-clock/flake.nix

28 lines
621 B
Nix
Raw Normal View History

2024-06-19 20:08:03 +00:00
{
description = "A very basic python flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
shell = "zsh";
in {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
python3
pyright
black
];
shellHook = ''
source .env.sh
exec ${shell}
'';
};
});
}