files.license.enable

Whether to enable auto generated license file.

type

boolean

example

{
  files.license.enable = true;
}

default

{
  files.license.enable = false;
}

files.license.spdx

Use SPDX as template https://github.com/spdx/license-list-data/tree/master/text

type

submodule

example

{
  files.license.spdx = {
    name = "MIT";
    vars = {
      "copyright holders" = "Cruel Intentions";
      year = "2021";
    };
  };
}

default

{
  files.license.spdx = { };
}

files.license.spdx.name

SPDX text name without extension

type

string

example

{
  files.license.spdx.name = "MIT";
}

files.license.spdx.vars

Most SPDX templates has some placeholders like <OWNER>, it is case sensitive

type

attribute set of string

example

{
  files.license.spdx.vars = {
    OWNER = "cruel-intentions";
    "URL for Development Group/Institution" = "https://github.com/cruel-intentions";
    year = "2021";
    "yyyy, yyyy" = "2021, 2099";
  };
}

default

{
  files.license.spdx.vars = { };
}