disable home-manager manual if the system and home-manager versions mismatch
This commit is contained in:
parent
f2fabdec75
commit
21cbdc4651
1 changed files with 13 additions and 4 deletions
|
@ -2,8 +2,17 @@
|
||||||
{
|
{
|
||||||
documentation.nixos.includeAllModules = true;
|
documentation.nixos.includeAllModules = true;
|
||||||
documentation.nixos.options.warningsAreErrors = false;
|
documentation.nixos.options.warningsAreErrors = false;
|
||||||
home-manager.users.darkkirb.manual = {
|
home-manager.users.darkkirb =
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
systemConfig,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
manual = lib.mkIf (config.home.version.release == systemConfig.system.nixos.release) {
|
||||||
html.enable = true;
|
html.enable = true;
|
||||||
json.enable = true;
|
json.enable = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue