{ lib }: { checkMe = { name ? "", ... }@me: assert name != ""; assert (builtins.pathExists ./machines/${name}.nix) && (builtins.pathExists ./hardware/${name}.nix); me; titleCase = str: with lib.strings; let firstCharUpper = s: concatStrings [(toUpper (substring 0 1 s)) (substring 1 (stringLength s) s)]; in concatStringsSep " " (map firstCharUpper (splitString " " str)); }