puzzlevision/lib/module/default.nix

17 lines
329 B
Nix
Raw Permalink Normal View History

2024-12-25 23:32:40 +01:00
{
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; };
}