Skip to content

Instantly share code, notes, and snippets.

@mwmdev
mwmdev / nixpy.sh
Last active September 27, 2024 09:51
Setup script for python environment on nixos.
#!/usr/bin/env bash
# Step 1: Check if shell.nix exists; if not, create it
if [ ! -f shell.nix ]; then
cat <<'EOF' > shell.nix
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = [
pkgs.python3