Nix configurations for my homelab
1{ lib, ... }:
2{
3 options.garden.container = lib.mkOption {
4 description = "Container configuration";
5 type =
6 with lib.types;
7 attrsOf (
8 submodule (
9 { name, ... }:
10 {
11 options = {
12 name = lib.mkOption {
13 type = str;
14 description = "Name of the host";
15 };
16 config = lib.mkOption {
17 type = with lib.types; listOf attrs;
18 };
19 };
20
21 config.name = name;
22 }
23 )
24 );
25 };
26}