mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-02-07 19:53:06 +01:00
16 lines
299 B
Nix
16 lines
299 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
## Create a NixOS module option as a one-liner.
|
|
##
|
|
## ```nix
|
|
## lib.mkOpt nixpkgs.lib.types.str "My default" "Option description"
|
|
## ```
|
|
##
|
|
#@ Type -> Any -> String
|
|
mkOpt =
|
|
type: default: description:
|
|
lib.mkOption { inherit type default description; };
|
|
}
|