disable home-manager manual if the system and home-manager versions mismatch

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-16 09:43:04 +01:00
parent f2fabdec75
commit 21cbdc4651

View file

@ -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 =
html.enable = true; {
json.enable = true; lib,
}; config,
systemConfig,
...
}:
{
manual = lib.mkIf (config.home.version.release == systemConfig.system.nixos.release) {
html.enable = true;
json.enable = true;
};
};
} }