mirror of
https://github.com/smg1024/nix-darwin.git
synced 2026-05-22 20:32:59 +09:00
69 lines
1.2 KiB
Nix
69 lines
1.2 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
username,
|
|
homebrew-core,
|
|
homebrew-cask,
|
|
...
|
|
}: {
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
git
|
|
neovim
|
|
just # use Justfile to simplify nix-darwin's commands
|
|
tree
|
|
fastfetchMinimal
|
|
];
|
|
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;
|
|
|
|
onActivation = {
|
|
autoUpdate = true;
|
|
cleanup = "zap";
|
|
};
|
|
|
|
# Applications to install from Mac App Store using mas.
|
|
masApps = {
|
|
KakaoTalk = 869223134;
|
|
Across = 6444851827;
|
|
Bitwarden = 1352778147;
|
|
};
|
|
|
|
taps = builtins.attrNames config.nix-homebrew.taps;
|
|
|
|
# WARNING only include those not in nixpkgs
|
|
brews = [
|
|
"gemini-cli"
|
|
];
|
|
|
|
casks = [
|
|
"batfi"
|
|
"hammerspoon"
|
|
"shottr" # stable version dmg link not found
|
|
"arc"
|
|
"codex"
|
|
"claude-code"
|
|
"telegram"
|
|
"raycast"
|
|
"jordanbaird-ice"
|
|
"keka"
|
|
"kekaexternalhelper"
|
|
"stats"
|
|
"iina"
|
|
];
|
|
};
|
|
}
|