mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-05-11 22:19:47 +02:00
13 lines
316 B
Nix
13 lines
316 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
|
|
}
|