Skip to content

Instantly share code, notes, and snippets.

@0xperp
Created August 28, 2022 17:14
Show Gist options
  • Save 0xperp/50d38ea630aeaca071e72f25af881f50 to your computer and use it in GitHub Desktop.
Save 0xperp/50d38ea630aeaca071e72f25af881f50 to your computer and use it in GitHub Desktop.
Generating and Running Python Scripts in Nix

Generate code for configuration.nix with packages that you need installed

Using nix-template for ease of use

nix-shell -p nix-template

# add any package you want with the `-u` flag
nix-template python -u https://pypi.org/project/libagent/ --stdout

take the output and add to your configuration.nix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment