refactor: modularize nix-homebrew

This commit is contained in:
Poby 2026-03-14 23:02:24 +09:00
parent 316032bab6
commit ae3c83f936
No known key found for this signature in database
2 changed files with 20 additions and 20 deletions

View file

@ -1,4 +1,11 @@
{ pkgs, ... }:
{
pkgs,
config,
username,
homebrew-core,
homebrew-cask,
...
}:
{
nixpkgs.config.allowUnfree = true;
@ -11,6 +18,17 @@
];
environment.variables.EDITOR = "nvim";
nix-homebrew = {
enable = true;
enableRosetta = true;
user = username;
taps = {
"homebrew/homebrew-core" = homebrew-core;
"homebrew/homebrew-cask" = homebrew-cask;
};
mutableTaps = false;
};
homebrew = {
enable = true;
@ -26,7 +44,7 @@
Bitwarden = 1352778147;
};
taps = [ ];
taps = builtins.attrNames config.nix-homebrew.taps;
# WARNING only include those not in nixpkgs
brews = [ ];