Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos: convert option documentation to Markdown #4158

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions nixos/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,20 @@ let

in {
options.home-manager = {
useUserPackages = mkEnableOption ''
useUserPackages = mkEnableOption (mdDoc ''
installation of user packages through the
<option>users.users.&lt;name&gt;.packages</option> option
emilazy marked this conversation as resolved.
Show resolved Hide resolved
'';
[](#opt-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.
'';
Expand All @@ -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.
'';
};
Expand All @@ -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.
'';
};
Expand All @@ -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.
'';
};
Expand Down