In this section we describe the blueprint configuration options.
Those are available by changing the flake.nix
output invocation with additional parameters.
Set this if you want to load the blueprint from a directory within the repositiry other than the flake location.
Default: "."
Type: string.
Defines for which systems the project should be used and deployed on.
Default: it will load the inputs.systems
flake input, first from the current flake, and then fallback to the blueprint one. (see https://github.com/nix-systems/default).
Type: list of <kernel>-<arch>
strings.
Example:
{
outputs = inputs: inputs.blueprint {
inherit inputs;
systems = [ "aarch64-linux" "x86_64-linux" ];
};
}
If set, blueprint will create a new instance of nixpkgs for each systems, with the passed config.
Default: inputs.nixpkgs.legacyPackages.<system>
.
Type: attrset.
Example:
{
outputs = inputs: inputs.blueprint {
inherit inputs;
nixpkgs.config.allowUnfree = true;
};
}
NOTE: It's better to use
perSystem
composition style instead of overlays if you can.
If set, blueprint will create a new instance of nixpkgs for each systems, with the passed config.
Default: inputs.nixpkgs.legacyPackages.<system>
.
Type: list of functions.
Example:
{
outputs = inputs: inputs.blueprint {
inherit inputs;
nixpkgs.overlays = [
inputs.otherflake.overlays.default
(final: prev: {
git = final.gitMinimal;
})
];
};
}