diff --git a/lib/module/default.nix b/lib/module/default.nix new file mode 100644 index 0000000..6f99f78 --- /dev/null +++ b/lib/module/default.nix @@ -0,0 +1,16 @@ +{ + lib, + ... +}: with lib; +rec { + ## Create a NixOS module option. (Stolen from Jake Hamilton) + ## + ## ```nix + ## lib.mkOpt nixpkgs.lib.types.str "My default" "Description of my option." + ## ``` + ## + #@ Type -> Any -> String + mkOpt = + type: default: description: + mkOption { inherit type default description; }; +}