fix(darwin): Use flake.admin.username for homebrew primaryUser

This commit is contained in:
Mohammad Rafiq 2025-07-14 02:32:31 +08:00
parent cf6917e56d
commit 3d64bf5a6e
No known key found for this signature in database

View file

@ -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" ];
};
}