1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-30 13:49:47 +01:00
home-manager/tests/modules/misc/manual/manual.nix
Emily 1add3c3a99 manual: add test
This checks that the documentation can be built in the context of a
Home Manager configuration.
2023-07-16 14:26:53 +01:00

19 lines
512 B
Nix

{ ... }:
{
config = {
manual = {
html.enable = true;
manpages.enable = true;
json.enable = true;
};
nmt.script = ''
assertFileExists home-path/share/doc/home-manager/index.html
assertFileExists home-path/share/doc/home-manager/options.html
assertFileExists home-path/share/doc/home-manager/options.json
assertFileExists home-path/share/man/man1/home-manager.1.gz
assertFileExists home-path/share/man/man5/home-configuration.nix.5.gz
'';
};
}