Skip to content

Instantly share code, notes, and snippets.

View blockloop's full-sized avatar

Brett Jones blockloop

  • Lithic (privacy.com)
View GitHub Profile
@blockloop
blockloop / flake.nix
Last active February 18, 2025 19:09
Flake file to setup python/uv environment by supporting .python-version.
{
description = ''
Flake file to setup python/uv environment by supporting .python-version.
'';
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }:
let
# Define the systems we want to support
@blockloop
blockloop / .envrc
Last active March 11, 2025 15:33
shell.nix+direnv for python/uv/poetry using python version from pyproject.toml
#!/usr/bin/env bash
if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" "sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM="
fi
use nix