2024-05-19 23:38:49 +02:00
|
|
|
# Taken from: https://github.com/hlissner/dotfiles/blob/master/lib/options.nix
|
2024-05-22 14:29:45 +02:00
|
|
|
{lib, ...}: let
|
|
|
|
inherit (lib) mkOption types;
|
2024-05-19 23:38:49 +02:00
|
|
|
in {
|
2024-05-22 14:29:45 +02:00
|
|
|
mkOpt = type: default: mkOption {inherit type default;};
|
2024-05-19 23:38:49 +02:00
|
|
|
|
|
|
|
mkOpt' = type: default: description:
|
2024-05-22 14:29:45 +02:00
|
|
|
mkOption {inherit type default description;};
|
2024-05-19 23:38:49 +02:00
|
|
|
|
|
|
|
mkBoolOpt = default:
|
|
|
|
mkOption {
|
|
|
|
inherit default;
|
|
|
|
type = types.bool;
|
|
|
|
example = true;
|
|
|
|
};
|
|
|
|
}
|