mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
nixos/doc: clean up defaults and examples
This commit is contained in:
parent
330b1e08b8
commit
2ddc335e6f
584 changed files with 1612 additions and 1554 deletions
|
@ -530,7 +530,7 @@ in
|
|||
nixpkgs = mkOption {
|
||||
type = types.path;
|
||||
default = pkgs.path;
|
||||
defaultText = "pkgs.path";
|
||||
defaultText = literalExpression "pkgs.path";
|
||||
description = ''
|
||||
A path to the nixpkgs that provide the modules, pkgs and lib for evaluating the container.
|
||||
|
||||
|
@ -636,7 +636,7 @@ in
|
|||
bindMounts = mkOption {
|
||||
type = with types; attrsOf (submodule bindMountOpts);
|
||||
default = {};
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{ "/home" = { hostPath = "/home/alice";
|
||||
isReadOnly = false; };
|
||||
}
|
||||
|
@ -707,7 +707,7 @@ in
|
|||
}));
|
||||
|
||||
default = {};
|
||||
example = literalExample
|
||||
example = literalExpression
|
||||
''
|
||||
{ webserver =
|
||||
{ path = "/nix/var/nix/profiles/webserver";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue