From b0c6785f648612dfd7592f1d0f3753b6b686449e Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Fri, 18 Jul 2025 19:47:24 +0800 Subject: [PATCH] refactor(homebrew): move homebrew config to module --- nix/homes/rafiq/desktop/darwin.nix | 7 ------- nix/modules/system/homebrew.nix | 11 +++++++++++ 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 nix/modules/system/homebrew.nix diff --git a/nix/homes/rafiq/desktop/darwin.nix b/nix/homes/rafiq/desktop/darwin.nix index e1f598c..7ef9790 100644 --- a/nix/homes/rafiq/desktop/darwin.nix +++ b/nix/homes/rafiq/desktop/darwin.nix @@ -1,12 +1,5 @@ -{ config, ... }: -let - inherit (config.manifest) admin; -in { flake.modules.darwin.graphical.homebrew = { - enable = true; - user = admin.username; - onActivation.cleanup = "uninstall"; brews = [ "mise" "docker" diff --git a/nix/modules/system/homebrew.nix b/nix/modules/system/homebrew.nix new file mode 100644 index 0000000..312a26b --- /dev/null +++ b/nix/modules/system/homebrew.nix @@ -0,0 +1,11 @@ +{ config, ... }: +let + inherit (config.manifest) admin; +in +{ + flake.modules.darwin.graphical.homebrew = { + enable = true; + user = admin.username; + onActivation.cleanup = "uninstall"; + }; +}