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 = flake.modules.darwin.graphical.homebrew = {
{ config, ... }: enable = true;
{ primaryUser = cfg.admin.username;
enable = true; onActivation.cleanup = "uninstall";
primaryUser = config.home.username; casks = [ "ghostty" ];
onActivation.cleanup = "uninstall"; };
casks = [ "ghostty" ];
};
} }