From 2ff8975b6b2f19d5ffbd7574bd76494bf532d048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Fri, 20 Sep 2024 16:34:08 +0200 Subject: [PATCH] s/mkOption/mkEnableOption --- fediversity/default.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/fediversity/default.nix b/fediversity/default.nix index d31df29..3f39485 100644 --- a/fediversity/default.nix +++ b/fediversity/default.nix @@ -2,7 +2,7 @@ let inherit (builtins) toString; - inherit (lib) mkOption; + inherit (lib) mkOption mkEnableOption; inherit (lib.types) types; in { @@ -15,10 +15,7 @@ in { options = { fediversity = { - enable = mkOption { - type = types.bool; - default = false; - }; + enable = mkEnableOption "the collection of services bundled under Fediversity"; garage = mkOption { type = types.anything; @@ -28,9 +25,9 @@ in { type = types.string; }; - mastodon.enable = mkOption { type = types.bool; default = false; }; - pixelfed.enable = mkOption { type = types.bool; default = false; }; - peertube.enable = mkOption { type = types.bool; default = false; }; + mastodon.enable = mkEnableOption "default Fediversity Mastodon configuration"; + pixelfed.enable = mkEnableOption "default Fediversity Pixelfed configuration"; + peertube.enable = mkEnableOption "default Fediversity PeerTube configuration"; }; };