Skip to content

Introduction

A Makes project is identified by a makes.nix file in the top level directory.

A makes.nix file should be:

  • An attribute set of configuration options:

    1
    2
    3
    4
    5
    6
    7
    8
    {
      configOption1 = {
        # ...
      };
      configOption2 = {
        # ...
      };
    }
    
  • A function that receives one or more arguments and returns an attribute set of configuration options:

    {
      argA,
      argB,
      ...
    }: {
      configOption1 = {
        # ...
      };
      configOption2 = {
        # ...
      };
    }
    

In the next sections we document all configuration options you can tweak in a makes.nix.