treewide: fix mkEnableOption arguments

`mkEnableOption` wraps its argument in a full sentence; its argument
should not include the start of a sentence or the final full stop.
This commit is contained in:
Emily 2023-07-01 00:06:56 +01:00
parent 11b09b10e4
commit e2a1cb50d8
4 changed files with 9 additions and 10 deletions

View file

@ -118,7 +118,7 @@ in {
options = {
programs.himalaya = {
enable = lib.mkEnableOption "Enable the Himalaya email client.";
enable = lib.mkEnableOption "the Himalaya email client";
package = lib.mkPackageOption pkgs "himalaya" { };
settings = lib.mkOption {
type = lib.types.submodule { freeformType = tomlFormat.type; };
@ -132,8 +132,7 @@ in {
services = {
himalaya-notify = {
enable =
lib.mkEnableOption "Enable the Himalaya new emails notifier service.";
enable = lib.mkEnableOption "the Himalaya new emails notifier service";
environment = lib.mkOption {
type = with lib.types; attrsOf str;
@ -171,8 +170,8 @@ in {
};
himalaya-watch = {
enable = lib.mkEnableOption
"Enable the Himalaya folder changes watcher service.";
enable =
lib.mkEnableOption "the Himalaya folder changes watcher service";
environment = lib.mkOption {
type = with lib.types; attrsOf str;
@ -213,7 +212,7 @@ in {
accounts.email.accounts = lib.mkOption {
type = lib.types.attrsOf (lib.types.submodule {
options.himalaya = {
enable = lib.mkEnableOption "Enable Himalaya for this email account.";
enable = lib.mkEnableOption "Himalaya for this email account";
# TODO: remove me for the next release
backend = lib.mkOption {

View file

@ -15,7 +15,7 @@ in {
options = {
programs.sioyek = {
enable = mkEnableOption
"Sioyek is a PDF viewer designed for reading research papers and technical books.";
"Sioyek, a PDF viewer designed for reading research papers and technical books";
package = mkOption {
default = pkgs.sioyek;

View file

@ -83,11 +83,11 @@ in {
'';
};
enableBashIntegration = mkEnableOption "WezTerm's Bash integration." // {
enableBashIntegration = mkEnableOption "WezTerm's Bash integration" // {
default = true;
};
enableZshIntegration = mkEnableOption "WezTerm's Zsh integration." // {
enableZshIntegration = mkEnableOption "WezTerm's Zsh integration" // {
default = true;
};
};

View file

@ -209,7 +209,7 @@ in {
bounce = {
enable = mkEnableOption
"notification bounce when displaying next notification directly.";
"notification bounce when displaying next notification directly";
duration = mkOption {
type = types.ints.unsigned;