Skip to content

Instantly share code, notes, and snippets.

@yorickvP
yorickvP / acme-sh.nix
Last active September 12, 2019 12:17
acme.sh nix module, written at Serokell
{ 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; };
@tazjin
tazjin / yants.md
Last active June 15, 2023 22:32
Yet Another Nix Type System (aka YANTS)

yants

Note: Yants now has its own repository.


This is a tiny type-checker for data in Nix, written in Nix.

Features: