From 3c4aef00d48fa4a9702b8f08edf6aad868d80351 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 27 Jul 2023 11:13:39 +0800 Subject: [PATCH] modules: convert module description to RFC0072-style --- modules/home-manager/files/mutable-files.nix | 14 +++++++------- .../home-manager/programs/pop-launcher.nix | 6 +++--- modules/home-manager/services/archivebox.nix | 8 ++++---- modules/home-manager/services/bleachbit.nix | 4 ++-- modules/home-manager/services/distant.nix | 4 ++-- modules/home-manager/services/gallery-dl.nix | 18 +++++++----------- modules/home-manager/services/plover.nix | 4 ++-- modules/home-manager/services/yt-dlp.nix | 19 ++++++++----------- modules/nixos/programs/cardboard-wm.nix | 4 ++-- modules/nixos/programs/kiwmi.nix | 2 +- modules/nixos/programs/pop-launcher.nix | 8 ++++---- modules/nixos/programs/wezterm.nix | 2 +- modules/nixos/services/archivebox.nix | 8 ++++---- modules/nixos/services/gallery-dl.nix | 15 ++++++--------- modules/nixos/services/wezterm-mux-server.nix | 4 ++-- modules/nixos/services/yt-dlp.nix | 15 ++++++--------- .../nixos/workflows/a-happy-gnome/default.nix | 2 +- 17 files changed, 62 insertions(+), 75 deletions(-) diff --git a/modules/home-manager/files/mutable-files.nix b/modules/home-manager/files/mutable-files.nix index acbb186c..54a2fc1f 100644 --- a/modules/home-manager/files/mutable-files.nix +++ b/modules/home-manager/files/mutable-files.nix @@ -7,7 +7,7 @@ let options = { url = lib.mkOption { type = lib.types.str; - description = lib.mdDoc '' + description = '' The URL of the file to be fetched. ''; example = "https://github.com/foo-dogsquared/dotfiles.git"; @@ -15,7 +15,7 @@ let path = lib.mkOption { type = lib.types.str; - description = lib.mdDoc '' + description = '' The path of the mutable file. By default, it will be relative to the home directory. ''; @@ -27,7 +27,7 @@ let extractPath = lib.mkOption { type = with lib.types; nullOr str; - description = lib.mdDoc '' + description = '' The path within the archive to be extracted. This is only used if the type is `archive`. If the value is `null` then it will extract the whole archive into the directory. @@ -38,7 +38,7 @@ let type = lib.mkOption { type = lib.types.enum [ "git" "fetch" "archive" "gopass" "custom" ]; - description = lib.mdDoc '' + description = '' Type that configures the behavior for fetching the URL. This accept only certain keywords. @@ -60,10 +60,10 @@ let extraArgs = lib.mkOption { type = with lib.types; listOf str; - description = lib.mdDoc '' + description = '' A list of extra arguments to be included with the fetch command. Take note of the commands used for each type as documented from - `config.home.mutableFile..type`. + {option}`config.home.mutableFile..type`. ''; default = [ ]; example = [ "--depth" "1" ]; @@ -74,7 +74,7 @@ in { options.home.mutableFile = lib.mkOption { type = with lib.types; attrsOf (submodule (fileType config.home.homeDirectory)); - description = lib.mdDoc '' + description = '' An attribute set of mutable files and directories to be declaratively put into the home directory. Take note this is not exactly pure (or idempotent) as it will only do its fetching when the designated file is diff --git a/modules/home-manager/programs/pop-launcher.nix b/modules/home-manager/programs/pop-launcher.nix index 5e88c505..fa47f385 100644 --- a/modules/home-manager/programs/pop-launcher.nix +++ b/modules/home-manager/programs/pop-launcher.nix @@ -36,8 +36,8 @@ in launchers. Take note you have to install an application launcher frontend to make - use of this such as onagre or - cosmic-launcher. + use of this such as {command}`onagre` or + {command}`cosmic-launcher`. ''; type = lib.types.bool; default = false; @@ -47,7 +47,7 @@ in package = lib.mkOption { type = lib.types.package; description = '' - The package where pop-launcher binary and + The package where {command}`pop-launcher` binary and built-in plugins are expected. ''; default = pkgs.pop-launcher; diff --git a/modules/home-manager/services/archivebox.nix b/modules/home-manager/services/archivebox.nix index 056a679b..5723f1b7 100644 --- a/modules/home-manager/services/archivebox.nix +++ b/modules/home-manager/services/archivebox.nix @@ -19,8 +19,8 @@ let extraArgs = lib.mkOption { type = with lib.types; listOf str; description = '' - Additional arguments for adding links (i.e., archivebox add - $LINK) from . + Additional arguments for adding links (i.e., {command}`archivebox add + $LINK`) from {option}`links`. ''; default = [ ]; example = lib.literalExpression '' @@ -31,8 +31,8 @@ let startAt = lib.mkOption { type = with lib.types; str; description = '' - Indicates how frequent the scheduled archiving will occur. - Should be a valid string format as described from systemd.time(5). + Indicates how frequent the scheduled archiving will occur. Should be + a valid string format as described from {manpage}`systemd.time(5)`. ''; default = "daily"; defaultText = "daily"; diff --git a/modules/home-manager/services/bleachbit.nix b/modules/home-manager/services/bleachbit.nix index 6afd5ade..923ea1d1 100644 --- a/modules/home-manager/services/bleachbit.nix +++ b/modules/home-manager/services/bleachbit.nix @@ -56,7 +56,7 @@ in description = '' How often or when cleanup will occur. For most cases, it should be enough to clean it up once per month. - See systemd.time(7) to see the date format. + See {manpage}`systemd.time(7)` to see the date format. ''; default = "monthly"; example = "Fri 10:00:00"; @@ -65,7 +65,7 @@ in package = lib.mkOption { type = lib.types.package; description = '' - The derivation containing bleachbit executable. + The derivation containing {command}`bleachbit` executable. ''; default = pkgs.bleachbit; }; diff --git a/modules/home-manager/services/distant.nix b/modules/home-manager/services/distant.nix index e2a7ec94..05b8b35f 100644 --- a/modules/home-manager/services/distant.nix +++ b/modules/home-manager/services/distant.nix @@ -14,14 +14,14 @@ in enable = lib.mkEnableOption "Distant-related services"; package = lib.mkOption { - description = lib.mdDoc "The package containing the `distant` executable."; + description = "The package containing the {command}`distant` executable."; type = lib.types.package; default = pkgs.distant; defaultText = "pkgs.distant"; }; settings = lib.mkOption { - description = lib.mdDoc '' + description = '' The configuration settings to be passed to the service. ''; types = settingsFormat.type; diff --git a/modules/home-manager/services/gallery-dl.nix b/modules/home-manager/services/gallery-dl.nix index da32834a..dece7a61 100644 --- a/modules/home-manager/services/gallery-dl.nix +++ b/modules/home-manager/services/gallery-dl.nix @@ -16,8 +16,8 @@ let type = with lib.types; listOf str; default = [ ]; description = '' - A list of URLs to be downloaded to gallery-dl. Please - see the list of extractors with . + A list of URLs to be downloaded to {command}`gallery-dl`. Please + see the list of extractors with `--list-extractors`. ''; example = lib.literalExpression '' [ @@ -32,10 +32,7 @@ let description = '' Indicates how frequent the download will occur. The given schedule should follow the format as described from - - systemd.time - 5 - . + {manpage}`systemd.time(5)`. ''; default = "daily"; example = "*-*-3/4"; @@ -45,8 +42,7 @@ let type = lib.types.bool; description = '' Indicates whether job is persistent, starting the service despite the - timer missed. Defaults to true assuming it is used - on the desktop. + timer missed. Defaults to `true` assuming it is used on the desktop. ''; default = true; defaultText = "true"; @@ -57,7 +53,7 @@ let type = with lib.types; listOf str; description = '' Job-specific extra arguments to be passed to the - gallery-dl. + {command}`gallery-dl`. ''; default = [ ]; example = lib.literalExpression '' @@ -90,7 +86,7 @@ in package = lib.mkOption { type = lib.types.package; description = - "Package containing the gallery-dl binary."; + "Package containing the {command}`gallery-dl` binary."; default = pkgs.gallery-dl; defaultText = lib.literalExpression "pkgs.gallery-dl"; }; @@ -125,7 +121,7 @@ in extraArgs = lib.mkOption { type = with lib.types; listOf str; description = - "List of arguments to be passed to gallery-dl."; + "List of arguments to be passed to {command}`gallery-dl`."; default = [ ]; example = lib.literalExpression '' [ diff --git a/modules/home-manager/services/plover.nix b/modules/home-manager/services/plover.nix index 9e68e2ea..f7a44459 100644 --- a/modules/home-manager/services/plover.nix +++ b/modules/home-manager/services/plover.nix @@ -30,7 +30,7 @@ in package = lib.mkOption { type = lib.types.package; - description = -"The derivation containing the binaries for the service."; + description = "The derivation containing the binaries for the service."; default = pkgs.plover.dev; defaultText = "pkgs.plover.dev"; example = lib.literalExpression "pkgs.plover.stable"; @@ -57,7 +57,7 @@ in extraOptions = lib.mkOption { type = with lib.types; listOf str; description = - "Extra command-line arguments to pass to plover"; + "Extra command-line arguments to pass to {command}`plover`"; default = [ ]; defaultText = lib.literalExpression "[]"; example = lib.literalExpression '' diff --git a/modules/home-manager/services/yt-dlp.nix b/modules/home-manager/services/yt-dlp.nix index 7650fc90..117d052f 100644 --- a/modules/home-manager/services/yt-dlp.nix +++ b/modules/home-manager/services/yt-dlp.nix @@ -13,8 +13,8 @@ let type = with lib.types; listOf str; default = [ ]; description = '' - A list of URLs to be downloaded to yt-dlp. Please - see the list of extractors with . + A list of URLs to be downloaded to {command}`yt-dlp`. Please + see the list of extractors with `--list-extractors`. ''; example = lib.literalExpression '' [ @@ -29,10 +29,7 @@ let description = '' Indicates how frequent the download will occur. The given schedule should follow the format as described from - - systemd.time - 5 - . + {manpage}`systemd.time(5)`. ''; default = "daily"; example = "*-*-3/4"; @@ -42,8 +39,8 @@ let type = lib.types.bool; description = '' Indicates whether the service will start if timer has missed. - Defaults to true since this module mainly assumes - it is used on the desktop. + Defaults to `true` since this module mainly assumes it is used on the + desktop. ''; default = true; defaultText = "true"; @@ -53,7 +50,7 @@ let extraArgs = lib.mkOption { type = with lib.types; listOf str; description = - "Job-specific extra arguments to be passed to the yt-dlp."; + "Job-specific extra arguments to be passed to the {command}`yt-dlp`"; default = [ ]; example = lib.literalExpression '' [ @@ -71,7 +68,7 @@ in package = lib.mkOption { type = lib.types.package; description = - "The derivation that contains yt-dlp binary."; + "The derivation that contains {command}`yt-dlp` binary."; default = pkgs.yt-dlp; defaultText = lib.literalExpression "pkgs.yt-dlp"; example = lib.literalExpression @@ -96,7 +93,7 @@ in extraArgs = lib.mkOption { type = with lib.types; listOf str; description = - "List of arguments to be passed to yt-dlp."; + "List of arguments to be passed to {command}`yt-dlp`."; default = [ "--download-archive '${cfg.archivePath}/download-list" ]; example = lib.literalExpression '' [ diff --git a/modules/nixos/programs/cardboard-wm.nix b/modules/nixos/programs/cardboard-wm.nix index c813d3c5..93909ff4 100644 --- a/modules/nixos/programs/cardboard-wm.nix +++ b/modules/nixos/programs/cardboard-wm.nix @@ -17,8 +17,8 @@ in default = pkgs.cardboard; defaultText = lib.literalExpression "pkgs.cardboard"; description = '' - The derivation containing the cardboard - and cutter binary. + The derivation containing the {command}`cardboard` and + {command}`cutter` binary. ''; }; diff --git a/modules/nixos/programs/kiwmi.nix b/modules/nixos/programs/kiwmi.nix index d0e7b642..5e129b95 100644 --- a/modules/nixos/programs/kiwmi.nix +++ b/modules/nixos/programs/kiwmi.nix @@ -9,7 +9,7 @@ in options.programs.kiwmi = { enable = lib.mkEnableOption "Kiwmi, a fully programmable Wayland compositor"; package = lib.mkOption { - description = "The package containing the kiwmi and kiwmic."; + description = "The package containing the {command}`kiwmi` and {command}`kiwmic`."; type = lib.types.package; default = pkgs.kiwmi; }; diff --git a/modules/nixos/programs/pop-launcher.nix b/modules/nixos/programs/pop-launcher.nix index 360b77f8..bb29fd40 100644 --- a/modules/nixos/programs/pop-launcher.nix +++ b/modules/nixos/programs/pop-launcher.nix @@ -35,8 +35,8 @@ in launchers. However, you have to install an application launcher frontend to make - use of this such as onagre or - cosmic-launcher. + use of this such as {command}`onagre` or + {command}`cosmic-launcher`. ''; type = lib.types.bool; default = false; @@ -46,8 +46,8 @@ in package = lib.mkOption { type = lib.types.package; description = '' - The package where pop-launcher binary and - built-in plugins are expected. + The package where {command}`pop-launcher` binary and built-in plugins + are expected. ''; default = pkgs.pop-launcher; }; diff --git a/modules/nixos/programs/wezterm.nix b/modules/nixos/programs/wezterm.nix index e658cada..a3e6c707 100644 --- a/modules/nixos/programs/wezterm.nix +++ b/modules/nixos/programs/wezterm.nix @@ -14,7 +14,7 @@ in package = lib.mkOption { type = lib.types.package; default = pkgs.wezterm; - description = "Package containing wezterm binary."; + description = "Package containing {command}`wezterm` binary."; }; }; diff --git a/modules/nixos/services/archivebox.nix b/modules/nixos/services/archivebox.nix index 83bc4289..97e35448 100644 --- a/modules/nixos/services/archivebox.nix +++ b/modules/nixos/services/archivebox.nix @@ -19,8 +19,8 @@ let extraArgs = lib.mkOption { type = with lib.types; listOf str; description = '' - Additional arguments for adding links (i.e., archivebox add - $LINK) from . + Additional arguments for adding links (i.e., {command}`archivebox add + $LINK`) from {option}`links`. ''; default = [ ]; example = lib.literalExpression '' @@ -31,8 +31,8 @@ let startAt = lib.mkOption { type = with lib.types; str; description = '' - Indicates how frequent the scheduled archiving will occur. - Should be a valid string format as described from systemd.time(5). + Indicates how frequent the scheduled archiving will occur. Should be + a valid string format as described from {manpage}`systemd.time(5)`. ''; default = "weekly"; defaultText = "weekly"; diff --git a/modules/nixos/services/gallery-dl.nix b/modules/nixos/services/gallery-dl.nix index c1aed1ac..f53f56c4 100644 --- a/modules/nixos/services/gallery-dl.nix +++ b/modules/nixos/services/gallery-dl.nix @@ -15,8 +15,8 @@ let type = with lib.types; listOf str; default = [ ]; description = '' - A list of URLs to be downloaded to gallery-dl. Please - see the list of extractors with . + A list of URLs to be downloaded to {command}`gallery-dl`. Please + see the list of extractors with `--list-extractors`. ''; example = lib.literalExpression '' [ @@ -31,10 +31,7 @@ let description = '' Indicates how frequent the download will occur. The given schedule should follow the format as described from - - systemd.time - 5 - . + {manpage}`systemd.time(5)`. ''; default = "daily"; example = "*-*-3/4"; @@ -55,7 +52,7 @@ let type = with lib.types; listOf str; description = '' Job-specific extra arguments to be passed to the - gallery-dl. + {command}`gallery-dl`. ''; default = [ ]; example = lib.literalExpression '' @@ -88,7 +85,7 @@ in package = lib.mkOption { type = lib.types.package; description = - "Package containing the gallery-dl binary."; + "Package containing the {command}`gallery-dl` binary."; default = pkgs.gallery-dl; defaultText = lib.literalExpression "pkgs.gallery-dl"; }; @@ -121,7 +118,7 @@ in extraArgs = lib.mkOption { type = with lib.types; listOf str; description = - "List of arguments to be passed to gallery-dl."; + "List of arguments to be passed to {command}`gallery-dl`."; default = [ ]; example = lib.literalExpression '' [ diff --git a/modules/nixos/services/wezterm-mux-server.nix b/modules/nixos/services/wezterm-mux-server.nix index d7595f98..fe296d96 100644 --- a/modules/nixos/services/wezterm-mux-server.nix +++ b/modules/nixos/services/wezterm-mux-server.nix @@ -8,7 +8,7 @@ in enable = lib.mkEnableOption "Wezterm mux server"; package = lib.mkOption { type = lib.types.package; - description = lib.mdDoc '' + description = '' The package containing the {command}`wezterm-mux-server` binary. ''; default = pkgs.wezterm; @@ -16,7 +16,7 @@ in }; configFile = lib.mkOption { type = with lib.types; nullOr path; - description = lib.mdDoc '' + description = '' The path to the configuration file. For more information, you can see [its section for setting up multiplexing](https://wezfurlong.org/wezterm/multiplexing.html). ''; diff --git a/modules/nixos/services/yt-dlp.nix b/modules/nixos/services/yt-dlp.nix index 55a45746..d65c3435 100644 --- a/modules/nixos/services/yt-dlp.nix +++ b/modules/nixos/services/yt-dlp.nix @@ -13,8 +13,8 @@ let type = with lib.types; listOf str; default = [ ]; description = '' - A list of URLs to be downloaded to yt-dlp. Please - see the list of extractors with . + A list of URLs to be downloaded to {command}`yt-dlp`. Please + see the list of extractors with `--list-extractors`. ''; example = lib.literalExpression '' [ @@ -29,10 +29,7 @@ let description = '' Indicates how frequent the download will occur. The given schedule should follow the format as described from - - systemd.time - 5 - . + {manpage}`systemd.time(5)`. ''; default = "daily"; example = "*-*-3/4"; @@ -52,7 +49,7 @@ let extraArgs = lib.mkOption { type = with lib.types; listOf str; description = - "Job-specific extra arguments to be passed to the yt-dlp."; + "Job-specific extra arguments to be passed to the {command}`yt-dlp`."; default = [ ]; example = lib.literalExpression '' [ @@ -70,7 +67,7 @@ in package = lib.mkOption { type = lib.types.package; description = - "The derivation that contains yt-dlp binary."; + "The derivation that contains {command}`yt-dlp` binary."; default = pkgs.yt-dlp; defaultText = lib.literalExpression "pkgs.yt-dlp"; example = lib.literalExpression @@ -88,7 +85,7 @@ in extraArgs = lib.mkOption { type = with lib.types; listOf str; description = - "List of arguments to be passed to yt-dlp."; + "List of arguments to be passed to {command}`yt-dlp`."; default = [ "--download-archive videos" ]; example = lib.literalExpression '' [ diff --git a/modules/nixos/workflows/a-happy-gnome/default.nix b/modules/nixos/workflows/a-happy-gnome/default.nix index 42f6aaee..b6551bb7 100644 --- a/modules/nixos/workflows/a-happy-gnome/default.nix +++ b/modules/nixos/workflows/a-happy-gnome/default.nix @@ -26,7 +26,7 @@ in type = with lib.types; listOf package; description = '' A list of GNOME Shell extensions to be included. Take note the package - contain passthru.extensionUuid to be used for + contain `passthru.extensionUuid` to be used for enabling the extensions. ''; default = with pkgs.gnomeExtensions; [