mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 03:29:45 +01:00
treewide: manually convert some docs to Markdown
These files all have options that trip up the `nix-doc-munge` conversion tool for one reason or another (syntax that clashes with Markdown, options that were already using Markdown syntax despite not being marked that way, output that differs slightly after conversion, syntax too elaborate to convert with some cheap regular expressions, ...). Translate them manually and do a little copyediting to options in the vicinity while we're at it.
This commit is contained in:
parent
e2a1cb50d8
commit
3228f92b90
17 changed files with 242 additions and 213 deletions
|
@ -664,25 +664,25 @@ with lib;
|
|||
(types.enum [ "Background" "Standard" "Adaptive" "Interactive" ]);
|
||||
default = null;
|
||||
example = "Background";
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
This optional key describes, at a high level, the intended purpose of the job. The system will apply
|
||||
resource limits based on what kind of job it is. If left unspecified, the system will apply light
|
||||
resource limits to the job, throttling its CPU usage and I/O bandwidth. The following are valid values:
|
||||
|
||||
Background
|
||||
Background jobs are generally processes that do work that was not directly requested by the user.
|
||||
: Background jobs are generally processes that do work that was not directly requested by the user.
|
||||
The resource limits applied to Background jobs are intended to prevent them from disrupting the
|
||||
user experience.
|
||||
|
||||
Standard
|
||||
Standard jobs are equivalent to no ProcessType being set.
|
||||
: Standard jobs are equivalent to no ProcessType being set.
|
||||
|
||||
Adaptive
|
||||
Adaptive jobs move between the Background and Interactive classifications based on activity over
|
||||
XPC connections. See <literal>xpc_transaction_begin(3)</literal> for details.
|
||||
: Adaptive jobs move between the Background and Interactive classifications based on activity over
|
||||
XPC connections. See {manpage}`xpc_transaction_begin(3)` for details.
|
||||
|
||||
Interactive
|
||||
Interactive jobs run with the same resource limitations as apps, that is to say, none. Interactive
|
||||
: Interactive jobs run with the same resource limitations as apps, that is to say, none. Interactive
|
||||
jobs are critical to maintaining a responsive user experience, and this key should only be
|
||||
used if an app's ability to be responsive depends on it, and cannot be made Adaptive.
|
||||
'';
|
||||
|
|
|
@ -196,17 +196,11 @@ in {
|
|||
system-features = [ "big-parallel" "kvm" "recursive-nix" ];
|
||||
}
|
||||
'';
|
||||
description = ''
|
||||
Configuration for Nix, see
|
||||
<link xlink:href="https://nixos.org/manual/nix/stable/#sec-conf-file"/> or
|
||||
<citerefentry>
|
||||
<refentrytitle>nix.conf</refentrytitle>
|
||||
<manvolnum>5</manvolnum>
|
||||
</citerefentry> for available options.
|
||||
description = lib.mdDoc ''
|
||||
Configuration for Nix; see {manpage}`nix.conf(5)` for available options.
|
||||
The value declared here will be translated directly to the key-value pairs Nix expects.
|
||||
</para>
|
||||
<para>
|
||||
Configuration specified in <option>nix.extraOptions</option> which will be appended
|
||||
|
||||
Configuration specified in [](#opt-nix.extraOptions) will be appended
|
||||
verbatim to the resulting config file.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -34,41 +34,39 @@ with lib;
|
|||
};
|
||||
});
|
||||
default = { };
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
A set of named specialized configurations. These can be used to extend
|
||||
your base configuration with additional settings. For example, you can
|
||||
have specialisations named <quote>light</quote> and <quote>dark</quote>
|
||||
that applies light and dark color theme configurations.
|
||||
have specialisations named "light" and "dark"
|
||||
that apply light and dark color theme configurations.
|
||||
|
||||
</para><para>
|
||||
|
||||
Note, this is an experimental option for now and you therefore have to
|
||||
::: {.note}
|
||||
This is an experimental option for now and you therefore have to
|
||||
activate the specialisation by looking up and running the activation
|
||||
script yourself. Note, running the activation script will create a new
|
||||
script yourself. Running the activation script will create a new
|
||||
Home Manager generation.
|
||||
:::
|
||||
|
||||
</para><para>
|
||||
|
||||
For example, to activate the <quote>dark</quote> specialisation. You can
|
||||
For example, to activate the "dark" specialisation, you can
|
||||
first look up your current Home Manager generation by running
|
||||
|
||||
<programlisting language="console">
|
||||
```console
|
||||
$ home-manager generations | head -1
|
||||
2022-05-02 22:49 : id 1758 -> /nix/store/jy…ac-home-manager-generation
|
||||
</programlisting>
|
||||
```
|
||||
|
||||
then run
|
||||
|
||||
<programlisting language="console">
|
||||
```console
|
||||
$ /nix/store/jy…ac-home-manager-generation/specialisation/dark/activate
|
||||
Starting Home Manager activation
|
||||
…
|
||||
</programlisting>
|
||||
```
|
||||
|
||||
</para><para>
|
||||
|
||||
WARNING! Since this option is experimental, the activation process may
|
||||
::: {.warning}
|
||||
Since this option is experimental, the activation process may
|
||||
change in backwards incompatible ways.
|
||||
:::
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -40,9 +40,10 @@ in {
|
|||
default = { };
|
||||
example = literalExpression
|
||||
''{ Work = { source = "maildir://~/Maildir/work"; }; }'';
|
||||
description = ''
|
||||
Extra lines added to <filename>$HOME/.config/aerc/accounts.conf</filename>.
|
||||
See aerc-config(5).
|
||||
description = lib.mdDoc ''
|
||||
Extra lines added to {file}`$HOME/.config/aerc/accounts.conf`.
|
||||
|
||||
See {manpage}`aerc-config(5)`.
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -50,10 +51,11 @@ in {
|
|||
type = sectionsOrLines;
|
||||
default = { };
|
||||
example = literalExpression ''{ messages = { q = ":quit<Enter>"; }; }'';
|
||||
description = ''
|
||||
Extra lines added to <filename>$HOME/.config/aerc/binds.conf</filename>.
|
||||
description = lib.mdDoc ''
|
||||
Extra lines added to {file}`$HOME/.config/aerc/binds.conf`.
|
||||
Global keybindings can be set in the `global` section.
|
||||
See aerc-config(5).
|
||||
|
||||
See {manpage}`aerc-config(5)`.
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -61,9 +63,10 @@ in {
|
|||
type = sectionsOrLines;
|
||||
default = { };
|
||||
example = literalExpression ''{ ui = { sort = "-r date"; }; }'';
|
||||
description = ''
|
||||
Extra lines added to <filename>$HOME/.config/aerc/aerc.conf</filename>.
|
||||
See aerc-config(5).
|
||||
description = lib.mdDoc ''
|
||||
Extra lines added to {file}`$HOME/.config/aerc/aerc.conf`.
|
||||
|
||||
See {manpage}`aerc-config(5)`.
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -73,9 +76,10 @@ in {
|
|||
example = literalExpression ''
|
||||
{ default = { ui = { "tab.selected.reverse" = toggle; }; }; };
|
||||
'';
|
||||
description = ''
|
||||
Stylesets added to <filename>$HOME/.config/aerc/stylesets/</filename>.
|
||||
See aerc-stylesets(7).
|
||||
description = lib.mdDoc ''
|
||||
Stylesets added to {file}`$HOME/.config/aerc/stylesets/`.
|
||||
|
||||
See {manpage}`aerc-stylesets(7)`.
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -85,9 +89,10 @@ in {
|
|||
example = literalExpression ''
|
||||
{ new_message = "Hello!"; };
|
||||
'';
|
||||
description = ''
|
||||
Templates added to <filename>$HOME/.config/aerc/templates/</filename>.
|
||||
See aerc-templates(7).
|
||||
description = lib.mdDoc ''
|
||||
Templates added to {file}`$HOME/.config/aerc/templates/`.
|
||||
|
||||
See {manpage}`aerc-templates(7)`.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
@ -89,10 +89,9 @@ in {
|
|||
};
|
||||
|
||||
nix-direnv = {
|
||||
enable = mkEnableOption ''
|
||||
<link
|
||||
xlink:href="https://github.com/nix-community/nix-direnv">nix-direnv</link>,
|
||||
a fast, persistent use_nix implementation for direnv'';
|
||||
enable = mkEnableOption (lib.mdDoc ''
|
||||
[nix-direnv](https://github.com/nix-community/nix-direnv),
|
||||
a fast, persistent use_nix implementation for direnv'');
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
@ -442,20 +442,18 @@ in {
|
|||
privacy-badger
|
||||
]
|
||||
'';
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
List of Firefox add-on packages to install for this profile.
|
||||
Some pre-packaged add-ons are accessible from NUR,
|
||||
<link xlink:href="https://github.com/nix-community/NUR"/>.
|
||||
Some pre-packaged add-ons are accessible from the
|
||||
[Nix User Repository](https://github.com/nix-community/NUR).
|
||||
Once you have NUR installed run
|
||||
|
||||
<screen language="console">
|
||||
<prompt>$</prompt> <userinput>nix-env -f '<nixpkgs>' -qaP -A nur.repos.rycee.firefox-addons</userinput>
|
||||
</screen>
|
||||
```console
|
||||
$ nix-env -f '<nixpkgs>' -qaP -A nur.repos.rycee.firefox-addons
|
||||
```
|
||||
|
||||
to list the available Firefox add-ons.
|
||||
|
||||
</para><para>
|
||||
|
||||
Note that it is necessary to manually enable these extensions
|
||||
inside Firefox after the first installation.
|
||||
'';
|
||||
|
|
|
@ -218,18 +218,18 @@ in {
|
|||
backend = lib.mkOption {
|
||||
type = with lib.types; nullOr str;
|
||||
default = null;
|
||||
description = ''
|
||||
Specifying 'accounts.email.accounts.*.himalaya.backend' is deprecated,
|
||||
set 'accounts.email.accounts.*.himalaya.settings.backend' instead.
|
||||
description = lib.mdDoc ''
|
||||
Specifying {option}`accounts.email.accounts.*.himalaya.backend` is deprecated,
|
||||
set {option}`accounts.email.accounts.*.himalaya.settings.backend` instead.
|
||||
'';
|
||||
};
|
||||
|
||||
# TODO: remove me for the next release
|
||||
sender = lib.mkOption {
|
||||
type = with lib.types; nullOr str;
|
||||
description = ''
|
||||
Specifying 'accounts.email.accounts.*.himalaya.sender' is deprecated,
|
||||
set 'accounts.email.accounts.*.himalaya.settings.sender' instead.
|
||||
description = lib.mdDoc ''
|
||||
Specifying {option}`accounts.email.accounts.*.himalaya.sender` is deprecated,
|
||||
set {option}'accounts.email.accounts.*.himalaya.settings.sender' instead.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -38,10 +38,11 @@ in {
|
|||
};
|
||||
|
||||
colors = mkOption {
|
||||
description = ''
|
||||
The colors used in colored JSON output.</para>
|
||||
description = lib.mdDoc ''
|
||||
The colors used in colored JSON output.
|
||||
|
||||
<para>See <link xlink:href="https://stedolan.github.io/jq/manual/#Colors"/>.
|
||||
See the [Colors section](https://jqlang.github.io/jq/manual/#Colors)
|
||||
of the jq manual.
|
||||
'';
|
||||
|
||||
example = literalExpression ''
|
||||
|
|
|
@ -33,116 +33,123 @@ let
|
|||
(toKeyValueIfDefined (getAttrs [ "type" "color" "priority" ] value.khal))
|
||||
] ++ [ "\n" ]);
|
||||
|
||||
localeFormatOptions = let T = lib.types;
|
||||
in mapAttrs (n: v:
|
||||
v // {
|
||||
description = v.description + ''
|
||||
|
||||
Format strings are for python 'strftime', similarly to man 3 strftime.
|
||||
localeFormatOptions = let
|
||||
T = lib.types;
|
||||
suffix = ''
|
||||
Format strings are for Python `strftime`, similarly to
|
||||
{manpage}`strftime(3)`.
|
||||
'';
|
||||
}) {
|
||||
dateformat = {
|
||||
in {
|
||||
dateformat = mkOption {
|
||||
type = T.str;
|
||||
default = "%x";
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
khal will display and understand all dates in this format.
|
||||
|
||||
${suffix}
|
||||
'';
|
||||
};
|
||||
|
||||
timeformat = {
|
||||
timeformat = mkOption {
|
||||
type = T.str;
|
||||
default = "%X";
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
khal will display and understand all times in this format.
|
||||
|
||||
${suffix}
|
||||
'';
|
||||
};
|
||||
|
||||
datetimeformat = {
|
||||
datetimeformat = mkOption {
|
||||
type = T.str;
|
||||
default = "%c";
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
khal will display and understand all datetimes in this format.
|
||||
|
||||
${suffix}
|
||||
'';
|
||||
};
|
||||
|
||||
longdateformat = {
|
||||
longdateformat = mkOption {
|
||||
type = T.str;
|
||||
default = "%x";
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
khal will display and understand all dates in this format.
|
||||
It should contain a year (e.g. %Y).
|
||||
It should contain a year (e.g. `%Y`).
|
||||
|
||||
${suffix}
|
||||
'';
|
||||
};
|
||||
|
||||
longdatetimeformat = {
|
||||
longdatetimeformat = mkOption {
|
||||
type = T.str;
|
||||
default = "%c";
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
khal will display and understand all datetimes in this format.
|
||||
It should contain a year (e.g. %Y).
|
||||
It should contain a year (e.g. `%Y`).
|
||||
|
||||
${suffix}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
localeOptions = let T = lib.types;
|
||||
in localeFormatOptions // {
|
||||
unicode_symbols = {
|
||||
unicode_symbols = mkOption {
|
||||
type = T.bool;
|
||||
default = true;
|
||||
description = ''
|
||||
By default khal uses some unicode symbols (as in ‘non-ascii’) as
|
||||
description = lib.mdDoc ''
|
||||
By default khal uses some Unicode symbols (as in "non-ASCII") as
|
||||
indicators for things like repeating events.
|
||||
If your font, encoding etc. does not support those symbols, set this
|
||||
to false (this will enable ascii based replacements).
|
||||
to false (this will enable ASCII-based replacements).
|
||||
'';
|
||||
};
|
||||
|
||||
default_timezone = {
|
||||
default_timezone = mkOption {
|
||||
type = T.nullOr T.str;
|
||||
default = null;
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
Default for new events or if khal does not understand the timezone
|
||||
in an ical file.
|
||||
If 'null', the timezone of your computer will be used.
|
||||
If `null`, the timezone of your computer will be used.
|
||||
'';
|
||||
};
|
||||
|
||||
local_timezone = {
|
||||
local_timezone = mkOption {
|
||||
type = T.nullOr T.str;
|
||||
default = null;
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
khal will show all times in this timezone.
|
||||
If 'null', the timezone of your computer will be used.
|
||||
If `null`, the timezone of your computer will be used.
|
||||
'';
|
||||
};
|
||||
|
||||
firstweekday = {
|
||||
firstweekday = mkOption {
|
||||
type = T.ints.between 0 6;
|
||||
default = 0;
|
||||
description = ''
|
||||
the first day of the week, where Monday is 0 and Sunday is 6
|
||||
description = lib.mdDoc ''
|
||||
The first day of the week, where Monday is 0 and Sunday is 6.
|
||||
'';
|
||||
};
|
||||
|
||||
weeknumbers = {
|
||||
weeknumbers = mkOption {
|
||||
type = T.enum [ "off" "left" "right" ];
|
||||
default = "off";
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
Enable week numbers in calendar and interactive (ikhal) mode.
|
||||
As those are iso weeknumbers, they only work properly if firstweekday
|
||||
is set to 0.
|
||||
As those are ISO week numbers, they only work properly if
|
||||
{option}`firstweekday` is set to 0.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
in {
|
||||
options.programs.khal = {
|
||||
enable = mkEnableOption "khal, a CLI calendar application";
|
||||
enable = mkEnableOption (lib.mdDoc "khal, a CLI calendar application");
|
||||
locale = mkOption {
|
||||
type = lib.types.submodule {
|
||||
options = mapAttrs (n: v: mkOption v) localeOptions;
|
||||
};
|
||||
description = ''
|
||||
type = lib.types.submodule { options = localeOptions; };
|
||||
description = lib.mdDoc ''
|
||||
khal locale settings.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -48,11 +48,14 @@ in {
|
|||
apply = toString;
|
||||
default = "${config.xdg.dataHome}/pyenv";
|
||||
defaultText = "\${config.xdg.dataHome}/pyenv";
|
||||
description = ''
|
||||
The pyenv root directory (PYENV_ROOT).
|
||||
</para><para>
|
||||
Note: Deviating from upstream which uses `$HOME/.pyenv`,
|
||||
the default path is set according to the XDG base directory specification.
|
||||
description = lib.mdDoc ''
|
||||
The pyenv root directory ({env}`PYENV_ROOT`).
|
||||
|
||||
::: {.note}
|
||||
This deviates from upstream, which uses {file}`$HOME/.pyenv`.
|
||||
The default path in Home Manager is set according to the XDG
|
||||
base directory specification.
|
||||
:::
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
@ -118,8 +118,8 @@ in {
|
|||
shading = mkOption {
|
||||
type = types.ints.between 0 200;
|
||||
default = 100;
|
||||
description =
|
||||
"Darken (0 .. 99) or lighten (101 .. 200) the transparent background.";
|
||||
description = lib.mdDoc
|
||||
"Darken (0 to 99) or lighten (101 to 200) the transparent background.";
|
||||
};
|
||||
|
||||
extraConfig = mkOption {
|
||||
|
|
|
@ -182,12 +182,11 @@ in {
|
|||
type = types.str;
|
||||
default = "${config.xdg.dataHome}/vdirsyncer/status";
|
||||
defaultText = "$XDG_DATA_HOME/vdirsyncer/status";
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
A directory where vdirsyncer will store some additional data for the next sync.
|
||||
</para>
|
||||
|
||||
<para>For more information, see
|
||||
<link xlink:href="https://vdirsyncer.pimutils.org/en/stable/config.html#general-section"/>
|
||||
For more information, see the
|
||||
[vdirsyncer manual](https://vdirsyncer.pimutils.org/en/stable/config.html#general-section).
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
@ -35,12 +35,15 @@ in {
|
|||
type = types.path;
|
||||
default = defaultHieNixExe;
|
||||
defaultText = defaultHieNixExeText;
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
The path to the Haskell IDE Engine executable.
|
||||
</para><para>
|
||||
|
||||
Because hie-nix is not packaged in Nixpkgs, you need to add it as an
|
||||
overlay or set this option. Example overlay configuration:
|
||||
<programlisting language="nix">${exampleOverlay}</programlisting>
|
||||
|
||||
```nix
|
||||
${exampleOverlay}
|
||||
```
|
||||
'';
|
||||
example = literalExpression ''
|
||||
(import ~/src/haskell-ide-engine {}).hies + "/bin/hie-wrapper";
|
||||
|
|
|
@ -248,8 +248,8 @@ in
|
|||
|
||||
cdpath = mkOption {
|
||||
default = [];
|
||||
description = ''
|
||||
List of paths to autocomplete calls to `cd`.
|
||||
description = lib.mdDoc ''
|
||||
List of paths to autocomplete calls to {command}`cd`.
|
||||
'';
|
||||
type = types.listOf types.str;
|
||||
};
|
||||
|
|
|
@ -26,14 +26,16 @@ let
|
|||
type = types.nullOr types.bool;
|
||||
default = true;
|
||||
example = false;
|
||||
description = "Color output (auto set to 'no' on dumb terminals)";
|
||||
description = lib.mdDoc ''
|
||||
Color output (automatically set to `false` on dumb terminals).
|
||||
'';
|
||||
};
|
||||
|
||||
pmoduleDirs = mkOption {
|
||||
type = types.listOf types.path;
|
||||
default = [ ];
|
||||
example = [ "$HOME/.zprezto-contrib" ];
|
||||
description = "Add additional directories to load prezto modules from";
|
||||
description = "Add additional directories to load prezto modules from.";
|
||||
};
|
||||
|
||||
extraConfig = mkOption {
|
||||
|
@ -48,14 +50,18 @@ let
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "attr" "stat" ];
|
||||
description = "Set the Zsh modules to load (man zshmodules).";
|
||||
description = lib.mdDoc ''
|
||||
Set the Zsh modules to load ({manpage}`zshmodules(1)`).
|
||||
'';
|
||||
};
|
||||
|
||||
extraFunctions = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "zargs" "zmv" ];
|
||||
description = "Set the Zsh functions to load (man zshcontrib).";
|
||||
description = lib.mdDoc ''
|
||||
Set the Zsh functions to load ({manpage}`zshcontrib(1)`).
|
||||
'';
|
||||
};
|
||||
|
||||
pmodules = mkOption {
|
||||
|
@ -86,8 +92,10 @@ let
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "0.0.0.0" "127.0.0.1" ];
|
||||
description =
|
||||
"Set the entries to ignore in static */etc/hosts* for host completion.";
|
||||
description = lib.mdDoc ''
|
||||
Set the entries to ignore in static {file}`/etc/hosts` for
|
||||
host completion.
|
||||
'';
|
||||
};
|
||||
|
||||
editor = {
|
||||
|
@ -95,21 +103,25 @@ let
|
|||
type = types.nullOr (types.enum [ "emacs" "vi" ]);
|
||||
default = "emacs";
|
||||
example = "vi";
|
||||
description = "Set the key mapping style to 'emacs' or 'vi'.";
|
||||
description = lib.mdDoc ''
|
||||
Set the key mapping style to `emacs` or `vi`.
|
||||
'';
|
||||
};
|
||||
|
||||
dotExpansion = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
example = true;
|
||||
description = "Auto convert .... to ../..";
|
||||
description = lib.mdDoc ''
|
||||
Automatically convert `....` to `../..`
|
||||
'';
|
||||
};
|
||||
|
||||
promptContext = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
example = true;
|
||||
description = "Allow the zsh prompt context to be shown.";
|
||||
description = "Allow the Zsh prompt context to be shown.";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -117,8 +129,10 @@ let
|
|||
type = types.nullOr (types.enum [ "dirty" "untracked" "all" "none" ]);
|
||||
default = null;
|
||||
example = "all";
|
||||
description =
|
||||
"Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'.";
|
||||
description = lib.mdDoc ''
|
||||
Ignore submodules when they are `dirty`, `untracked`, `all`,
|
||||
or `none`.
|
||||
'';
|
||||
};
|
||||
|
||||
gnuUtility.prefix = mkOption {
|
||||
|
@ -154,8 +168,10 @@ let
|
|||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "manpages";
|
||||
description =
|
||||
"Set the keyword used by `mand` to open man pages in Dash.app";
|
||||
description = lib.mdDoc ''
|
||||
Set the keyword used by {command}`mand` to open man pages
|
||||
in Dash.app.
|
||||
'';
|
||||
};
|
||||
|
||||
prompt = {
|
||||
|
@ -163,19 +179,23 @@ let
|
|||
type = types.nullOr types.str;
|
||||
default = "sorin";
|
||||
example = "pure";
|
||||
description = ''
|
||||
Set the prompt theme to load. Setting it to 'random'
|
||||
loads a random theme. Auto set to 'off' on dumb terminals.'';
|
||||
description = lib.mdDoc ''
|
||||
Set the prompt theme to load. Setting it to `random`
|
||||
loads a random theme. Automatically set to `off` on dumb
|
||||
terminals.
|
||||
'';
|
||||
};
|
||||
|
||||
pwdLength = mkOption {
|
||||
type = types.nullOr (types.enum [ "short" "long" "full" ]);
|
||||
default = null;
|
||||
example = "short";
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
Set the working directory prompt display length. By
|
||||
default, it is set to 'short'. Set it to 'long' (without '~' expansion) for
|
||||
longer or 'full' (with '~' expansion) for even longer prompt display.'';
|
||||
default, it is set to `short`. Set it to `long` (without `~`
|
||||
expansion) for longer or `full` (with `~` expansion) for
|
||||
even longer prompt display.
|
||||
'';
|
||||
};
|
||||
|
||||
showReturnVal = mkOption {
|
||||
|
@ -184,7 +204,8 @@ let
|
|||
example = true;
|
||||
description = ''
|
||||
Set the prompt to display the return code along with an
|
||||
indicator for non-zero return codes. This is not supported by all prompts.'';
|
||||
indicator for non-zero return codes. This is not supported by all prompts.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -244,7 +265,8 @@ let
|
|||
example = [ "main" "brackets" "pattern" "line" "cursor" "root" ];
|
||||
description = ''
|
||||
Set syntax highlighters. By default, only the main
|
||||
highlighter is enabled.'';
|
||||
highlighter is enabled.
|
||||
'';
|
||||
};
|
||||
|
||||
styles = mkOption {
|
||||
|
@ -332,10 +354,12 @@ let
|
|||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
example = true;
|
||||
description = ''
|
||||
Enabled safe options. This aliases cp, ln, mv and rm so
|
||||
that they prompt before deleting or overwriting files. Set to 'no' to disable
|
||||
this safer behavior.'';
|
||||
description = lib.mdDoc ''
|
||||
Enabled safe options. This aliases {command}`cp`,
|
||||
{command}`ln`, {command}`mv` and {command}`rm` so that they
|
||||
prompt before deleting or overwriting files. Set to `no` to
|
||||
disable this safer behavior.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -122,38 +122,38 @@ in {
|
|||
type = with types;
|
||||
let ty = oneOf [ bool int float str (listOf ty) (attrsOf ty) ];
|
||||
in attrsOf (attrsOf ty // { description = "attribute sets"; });
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
Polybar configuration. This takes a nix attrset and converts it to the
|
||||
strange data format that polybar uses.
|
||||
Each entry will be converted to a section in the output file.
|
||||
Several things are treated specially: nested keys are converted
|
||||
to dash-separated keys; the special <literal>text</literal> key is ignored as a nested key,
|
||||
to dash-separated keys; the special `text` key is ignored as a nested key,
|
||||
to allow mixing different levels of nesting; and lists are converted to
|
||||
polybar's <literal>foo-0, foo-1, ...</literal> format.
|
||||
</para><para>
|
||||
polybar's `foo-0, foo-1, ...` format.
|
||||
|
||||
For example:
|
||||
<programlisting language="nix">
|
||||
```nix
|
||||
"module/volume" = {
|
||||
type = "internal/pulseaudio";
|
||||
format.volume = "<ramp-volume> <label-volume>";
|
||||
format.volume = "<ramp-volume> <label-volume>";
|
||||
label.muted.text = "🔇";
|
||||
label.muted.foreground = "#666";
|
||||
ramp.volume = ["🔈" "🔉" "🔊"];
|
||||
click.right = "pavucontrol &";
|
||||
click.right = "pavucontrol &";
|
||||
}
|
||||
</programlisting>
|
||||
```
|
||||
becomes:
|
||||
<programlisting language="ini">
|
||||
```ini
|
||||
[module/volume]
|
||||
type=internal/pulseaudio
|
||||
format-volume=<ramp-volume> <label-volume>
|
||||
format-volume=<ramp-volume> <label-volume>
|
||||
label-muted=🔇
|
||||
label-muted-foreground=#666
|
||||
ramp-volume-0=🔈
|
||||
ramp-volume-1=🔉
|
||||
ramp-volume-2=🔊
|
||||
click-right=pavucontrol &
|
||||
</programlisting>
|
||||
click-right=pavucontrol &
|
||||
```
|
||||
'';
|
||||
default = { };
|
||||
example = literalExpression ''
|
||||
|
|
|
@ -43,22 +43,20 @@ let
|
|||
|
||||
in {
|
||||
options.home-manager = {
|
||||
useUserPackages = mkEnableOption ''
|
||||
useUserPackages = mkEnableOption (mdDoc ''
|
||||
installation of user packages through the
|
||||
<option>users.users.<name>.packages</option> option
|
||||
'';
|
||||
{option}`users.users.<name>.packages` option'');
|
||||
|
||||
useGlobalPkgs = mkEnableOption ''
|
||||
using the system configuration's <literal>pkgs</literal>
|
||||
useGlobalPkgs = mkEnableOption (mdDoc ''
|
||||
using the system configuration's `pkgs`
|
||||
argument in Home Manager. This disables the Home Manager
|
||||
options <option>nixpkgs.*</option>
|
||||
'';
|
||||
options {option}`nixpkgs.*`'');
|
||||
|
||||
backupFileExtension = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "backup";
|
||||
description = ''
|
||||
description = mdDoc ''
|
||||
On activation move existing files by appending the given
|
||||
file extension rather than exiting with an error.
|
||||
'';
|
||||
|
@ -68,8 +66,8 @@ in {
|
|||
type = types.attrs;
|
||||
default = { };
|
||||
example = literalExpression "{ inherit emacs-overlay; }";
|
||||
description = ''
|
||||
Extra <literal>specialArgs</literal> passed to Home Manager. This
|
||||
description = mdDoc ''
|
||||
Extra `specialArgs` passed to Home Manager. This
|
||||
option can be used to pass additional arguments to all modules.
|
||||
'';
|
||||
};
|
||||
|
@ -78,7 +76,7 @@ in {
|
|||
type = with types; listOf raw;
|
||||
default = [ ];
|
||||
example = literalExpression "[ { home.packages = [ nixpkgs-fmt ]; } ]";
|
||||
description = ''
|
||||
description = mdDoc ''
|
||||
Extra modules added to all users.
|
||||
'';
|
||||
};
|
||||
|
@ -90,7 +88,7 @@ in {
|
|||
default = { };
|
||||
# Prevent the entire submodule being included in the documentation.
|
||||
visible = "shallow";
|
||||
description = ''
|
||||
description = mdDoc ''
|
||||
Per-user Home Manager configuration.
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue