mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-03-01 14:31:32 +01:00
16 lines
318 B
Nix
16 lines
318 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
# Create a NixOS module option on a single line.
|
|
mkOpt =
|
|
type: default: description:
|
|
lib.mkOption { inherit type default description; };
|
|
|
|
mkBool =
|
|
default: description:
|
|
lib.mkOption { inherit default description; type = lib.types.bool; };
|
|
|
|
# Todo: add mkIfElse function
|
|
}
|