rearrange and refactor multiple modules

This commit is contained in:
Yan Lin 2026-02-11 20:08:30 +01:00
parent 622265bd6e
commit be7cee9208
13 changed files with 233 additions and 456 deletions

View file

@ -1,17 +1,15 @@
{ config, pkgs, ... }:
{
# Homebrew configuration for package management
homebrew = {
enable = true;
onActivation = {
autoUpdate = true;
cleanup = "zap"; # Removes unlisted formulae/casks
cleanup = "zap";
upgrade = true;
};
greedyCasks = true;
brews = [
# Command-line tools go here
];
casks = [
# Development
@ -51,11 +49,10 @@
];
};
# nix-homebrew configuration for declarative Homebrew installation
nix-homebrew = {
enable = true;
enableRosetta = true; # Apple Silicon support
enableRosetta = true;
user = "yanlin";
autoMigrate = true; # Migrate existing Homebrew if present
autoMigrate = true;
};
}