Files
clan-core/nixosModules/clanCore/schema.nix
2024-11-12 14:46:26 +01:00

13 lines
375 B
Nix

{ 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 { };
defaultText = lib.literalExpression "jsonschema.schemaToJSON options.clan";
};
}