An open API service indexing awesome lists of open source software.

https://github.com/thecloudexplorers/nixos-blocks

Common blocks with workloads
https://github.com/thecloudexplorers/nixos-blocks

Last synced: 23 days ago
JSON representation

Common blocks with workloads

Awesome Lists containing this project

README

          

# nixos-blocks

These are opinionated general purpose blocks designed to simplifiy deployment
of services.

## Usage

To use these blocks you need to add it to the inputs and outputs of your flake:

```nix
{
inputs = {
nixos-blocks.url = "github:thecloudexplorers/nixos-blocks";
};
outputs = {
nixos-blocks,
...
}:
```

Then, you can use the options defined in each block
(see README.md in each block folder for definitions)
in your flake or configuration.nix files:

``` nix
example-block.options.domain = "domain.tld";
example-block.options.package = pkgs.package;
example-block.options.string = "foo";
```

## Naming of options

The naming convention is as follows:

A block always needs an enable option like so:

``` nix
nixos-blocks..enable = true;
```

Next the options can be defined like:

``` nix
nixos-blocks..options. = "option";
```

All options are referenced in [OPTIONS.md](OPTIONS.md).