From cf6917e56d6d446f7c2d23553d2c3807ef2e96bc Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Mon, 14 Jul 2025 02:28:42 +0800 Subject: [PATCH] feat(darwin): Add primaryUser to homebrew config --- nix/homes/rafiq/desktop/darwin.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nix/homes/rafiq/desktop/darwin.nix b/nix/homes/rafiq/desktop/darwin.nix index ea20119..936c690 100644 --- a/nix/homes/rafiq/desktop/darwin.nix +++ b/nix/homes/rafiq/desktop/darwin.nix @@ -1,7 +1,10 @@ { - flake.modules.darwin.graphical.homebrew = { - enable = true; - onActivation.cleanup = "uninstall"; - casks = [ "ghostty" ]; - }; + flake.modules.darwin.graphical.homebrew = + { config, ... }: + { + enable = true; + primaryUser = config.home.username; + onActivation.cleanup = "uninstall"; + casks = [ "ghostty" ]; + }; }