Use uv2nix to install ansible with additional python modules? #157
Replies: 2 comments
-
I have the exact same use-case. I would like to use uv2nix to install just a venv (a collection of versioned packages, but none of my own packages, so no build system) - this works fine with uv, but uv2nix appears to be forcing a build system currently. If there is a way to do this correctly (just build a venv, not a package), I haven't figured it out. I'm also doing this for ansible. |
Beta Was this translation helpful? Give feedback.
-
You can simply add mkVirtualEnv "ansible-env" {
ansible = [ ];
} For other more advanced cases there is the query API. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear maintainers,
sorry for the newbie question, but due to lack of knowledge on the internals of uv, I might have just failed to understand how to use uv2nix.
Could this be used to install Ansible with additional python modules on NixOS?
I currently have an issue where Ansible from NixPkgs does not find python modules that are installed on the system. Thinks like the cryptography or kubernetes modules that are used by some of Ansible's modules (which are basically python).
If this can be done, are there examples of using uv2nix with home-manager? How would I get started?
Thanks in advance!
Kind Regards,
Johannes
Beta Was this translation helpful? Give feedback.
All reactions