Add an option to change the policy of source file links inside the manual.

The default policy use local files instead of remote ones.

svn path=/nixos/trunk/; revision=17258
This commit is contained in:
Nicolas Pierron 2009-09-18 15:27:10 +00:00
parent f563438264
commit 0e3981213f

View File

@ -7,14 +7,14 @@
let
inherit (pkgs.lib) mkOption mkIf;
inherit (pkgs.lib) mkOption mkIf types;
cfg = config.services.nixosManual;
manual =
# We could speed up the evaluation of the manual expression by
# providing it the options of the current configuration.
import ../../../doc/manual {inherit pkgs options;};
manual = import ../../../doc/manual {
inherit (cfg) revision;
inherit pkgs options;
};
in
@ -51,6 +51,16 @@ in
'';
};
services.nixosManual.revision = mkOption {
default = "local";
type = types.uniq types.string;
description = ''
Revision of the targeted source file. This value can either be
<literate>"local"</literate>, <literate>"HEAD"</literate> or any
revision number embedded in a string.
'';
};
};