clan-core/nixosModules/clanCore/schema.nix

13 lines
367 B
Nix
Raw Permalink Normal View History

{ options, lib, ... }:
let
jsonschema = import ../../lib/jsonschema { inherit lib; };
in
{
options.clanSchema = lib.mkOption {
type = lib.types.attrs;
description = "The json schema for the .clan options namespace";
default = jsonschema.parseOptions options.clan;
2024-03-25 07:44:39 +00:00
defaultText = lib.literalExpression "jsonschema.schemaToJSON options.clan";
};
}