From 21cbdc46517b9f077954a946d0b70c911ada5d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 16 Nov 2024 09:43:04 +0100 Subject: [PATCH] disable home-manager manual if the system and home-manager versions mismatch --- config/documentation.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/config/documentation.nix b/config/documentation.nix index ae3f3c80..45632325 100644 --- a/config/documentation.nix +++ b/config/documentation.nix @@ -2,8 +2,17 @@ { documentation.nixos.includeAllModules = true; documentation.nixos.options.warningsAreErrors = false; - home-manager.users.darkkirb.manual = { - html.enable = true; - json.enable = true; - }; + home-manager.users.darkkirb = + { + lib, + config, + systemConfig, + ... + }: + { + manual = lib.mkIf (config.home.version.release == systemConfig.system.nixos.release) { + html.enable = true; + json.enable = true; + }; + }; }