This is an automated archive made by the Lemmit Bot.

The original was posted on /r/nixos by /u/TECHNOFAB on 2025-08-01 19:39:31+00:00.


Recently had to use Ansible a bit and thought, why not create a Nix wrapper for it (the curse of Nix ;P).

You can define the playbooks in Nix, aswell as the collections needed (by default it uses only ansible-core, and I mean the real core, not like in nixpkgs where it still pulls in all collections).

Open for feedback, I only used it for very simple tasks until now, didn’t really have a big need for Ansible before thanks to Nix but figured it’s great for initial setup steps after deploying stuff with Nix.

The module options don’t include everything that Ansible supports yet, if there are any options you need feel free to create a MR :)

Docs