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
- Host: GitHub
- URL: https://github.com/thecloudexplorers/nixos-blocks
- Owner: thecloudexplorers
- License: gpl-3.0
- Created: 2025-11-05T11:19:26.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-01-15T08:20:46.000Z (2 months ago)
- Last Synced: 2026-01-15T14:55:53.451Z (2 months ago)
- Language: Nix
- Size: 39.1 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).