Note: Yants now has its own repository.
This is a tiny type-checker for data in Nix, written in Nix.
Features:
{ config, lib, pkgs, ... }: | |
let | |
cfg = config.services.acme-sh; | |
dnstype = lib.types.enum [ "dns_aws" "dns_dnsimple" ]; | |
submod = with lib; { | |
domains = mkOption { | |
type = types.coercedTo (types.listOf types.string) | |
(f: lib.genAttrs f (x: cfg.dns)) (types.attrsOf dnstype); | |
default = { "${cfg.mainDomain}" = cfg.dns; }; |
Note: Yants now has its own repository.
This is a tiny type-checker for data in Nix, written in Nix.
Features: