dev.fron.io nixrc / 6682513
modules(isolation): fix description warnings Tony Olagbaiye 5 days ago
1 changed file(s) with 13 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1313 type = types.nullOr unaryStringFunctionType;
1414 example = literalExample ''{ id, ... }: "10.''${id}.0.1"'';
1515 default = null;
16 description = "Function to make a host IPv4 from a unique scope index";
1617 };
1718 makeHostAddress6 = mkOption {
1819 type = types.nullOr unaryStringFunctionType;
1920 example = literalExample ''{ id, ... }: "fc00:''${id}::1"'';
2021 default = null;
22 description = "Function to make a host IPv6 from a unique scope index";
2123 };
2224 makeLocalAddress = mkOption {
2325 type = types.nullOr unaryStringFunctionType;
2426 example = literalExample ''{ id, ... }: "10.''${id}.0.2"'';
2527 default = null;
28 description = "Function to make a local IPv4 from a unique scope index";
2629 };
2730 makeLocalAddress6 = mkOption {
2831 type = types.nullOr unaryStringFunctionType;
2932 example = literalExample ''{ id, ... }: "fc00:''${id}::0"'';
3033 default = null;
34 description = "Function to make a local IPv6 from a unique scope index";
3135 };
3236 scopes = mkOption {
3337 type = types.attrsOf (types.submodule ({ config, name, ... }: {
3438 options = {
3539 id = mkOption {
3640 type = types.ints.u8;
41 description = "Scope identifier";
3742 };
3843 name = mkOption {
3944 type = types.addCheck types.str (name: lib.stringLength name < 12);
4045 default = name;
46 description = "Scope name";
4147 };
4248 hostAddress = mkOption {
4349 type = types.str;
50 description = "Scope IPv4 host address";
4451 };
4552 hostAddress6 = mkOption {
4653 type = types.str;
54 description = "Scope IPv6 host address";
4755 };
4856 localAddress = mkOption {
4957 type = types.str;
58 description = "Scope IPv4 local address";
5059 };
5160 localAddress6 = mkOption {
5261 type = types.str;
62 description = "Scope IPv6 local address";
5363 };
5464 baseModules = mkOption {
5565 type = types.listOf types.anything;
5666 default = import (pkgs.path + "/nixos/modules/module-list.nix");
67 description = "Scope base system modules";
5768 };
5869 extraModules = mkOption {
5970 type = types.listOf types.anything;
71 description = "Extra scope modules";
6072 };
6173 nixos = mkOption {
6274 type = types.nullOr (types.submoduleWith {
100112 common.nixos = mkOption {
101113 type = with types; coercedTo anything singleton (listOf anything);
102114 default = {};
115 description = "Common configuration between machines";
103116 };
104117 machines = mkOption {
105118 type = types.listOf types.anything;