Clean up some option examples

This commit is contained in:
Eelco Dolstra
2013-10-30 16:19:07 +01:00
parent 0f8b1b1a5c
commit be5d3a59dd
8 changed files with 53 additions and 53 deletions

View File

@@ -156,7 +156,7 @@ in
extraFiles = mkOption {
default = {};
example = literalExample ''
{ "memtest.bin" = "${pkgs.memtest86plus}/memtest.bin"; }
{ "memtest.bin" = "''${pkgs.memtest86plus}/memtest.bin"; }
'';
description = ''
A set of files to be copied to <filename>/boot</filename>.

View File

@@ -32,13 +32,14 @@ in
environment.etc = mkOption {
type = types.loaOf types.optionSet;
default = {};
example =
example = literalExample ''
{ hosts =
{ source = "/nix/store/.../etc/dir/file.conf.example";
mode = "0440";
};
"default/useradd".text = "GROUP=100 ...";
};
}
'';
description = ''
Set of files that have to be linked in <filename>/etc</filename>.
'';