Forum Discussion

ekrall1's avatar
ekrall1
Copper Contributor
Jun 07, 2025

azure-pipelines-agent on NixOS

I am trying to install azure-pipelines-agent on NixOS, because I want to use nix in my pipeline.  I am finding this to be very difficult; the scripts like installdependencies.sh do not support NixOS as a  distribution.  Is there a known solution or workaround for this, or is it something that may be supported in the future?

1 Reply

  • I tried this base on my experience:

     

    1. Manually Install Dependencies – Since the script does not support NixOS, you may need to manually install the required dependencies using Nix packages.
    2. Use a Containerized Approach – Running the agent inside a Docker container with a supported Linux distribution might be an easier workaround.
    3. Modify the Installation Script – You could try adapting the installdependencies.sh script to work with NixOS by replacing package installation commands with Nix equivalents.

Resources