From 3d64bf5a6ebf922f8181ee56de73218be75e5ec9 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Mon, 14 Jul 2025 02:32:31 +0800 Subject: [PATCH] fix(darwin): Use flake.admin.username for homebrew primaryUser --- nix/homes/rafiq/desktop/darwin.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/nix/homes/rafiq/desktop/darwin.nix b/nix/homes/rafiq/desktop/darwin.nix index 936c690..50fef24 100644 --- a/nix/homes/rafiq/desktop/darwin.nix +++ b/nix/homes/rafiq/desktop/darwin.nix @@ -1,10 +1,12 @@ +{ config, ... }: +let + cfg = config.flake; +in { - flake.modules.darwin.graphical.homebrew = - { config, ... }: - { - enable = true; - primaryUser = config.home.username; - onActivation.cleanup = "uninstall"; - casks = [ "ghostty" ]; - }; + flake.modules.darwin.graphical.homebrew = { + enable = true; + primaryUser = cfg.admin.username; + onActivation.cleanup = "uninstall"; + casks = [ "ghostty" ]; + }; }