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