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