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