mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-02-12 06:03:05 +01:00
17 lines
299 B
Nix
17 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; };
|
||
|
}
|