From c48a01ae7f5f6193782d53b0d259f2ff51315468 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 20 Jun 2024 12:15:59 -0400 Subject: [PATCH] system: Don't generate man cache on mobile Significantly improves build times with aarch64 emulation. --- modules/system.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/system.nix b/modules/system.nix index 91c55087..8a25a045 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -144,6 +144,8 @@ in }; }; + documentation.man.generateCaches = mkIf (phone) false; + home-manager = { useGlobalPkgs = true; useUserPackages = true; @@ -153,7 +155,7 @@ in inherit (cfg) stateVersion; }; - programs.man.generateCaches = true; + programs.man.generateCaches = mkIf (!phone) true; }; users.${username}.home = {