From 27917ffede97789cdaf5aa8fa53c284a41235cd8 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 20 Jul 2026 14:30:49 -0400 Subject: [PATCH] remove home-manager module from nix-darwin this fixes the starship errors when rebuilding nix-darwin --- lib/default.nix | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/lib/default.nix b/lib/default.nix index d19cf6e1..60608f53 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -179,22 +179,20 @@ lib inputs.darwin.lib.darwinSystem { inherit system specialArgs; modules = [ - inputs.home-manager.darwinModules.home-manager inputs.mac-app-util.darwinModules.default { imports = (nixFiles ../platforms/nix-darwin); nixpkgs.pkgs = pkgsBySystem.${system}; } - module - { - home-manager = { - extraSpecialArgs = { - inherit colorscheme; - } - // specialArgs; - } - // homeModule.home-manager; - } + # Home Manager is intentionally NOT activated here. It is managed + # standalone via `nh home switch` (see homeConfigurations, extracted + # from the host module's `home-manager.users`). Strip that attr so + # darwin-rebuild doesn't also activate a second, divergent HM + # generation with different store paths (useUserPackages puts packages + # in /etc/profiles/per-user vs. ~/.nix-profile standalone) -- that + # mismatch broke the prompt after every darwin-rebuild until the next + # `nh home switch`. + (builtins.removeAttrs module [ "home-manager" ]) ]; };