nix-darwin/modules/apps.nix
Poby c41083e56a build(apps.nix): node uv
other package managers should be installed via brew
2025-04-13 12:45:38 +09:00

114 lines
2.6 KiB
Nix

{ pkgs, ... }: {
##########################################################################
#
# Install all apps and packages here.
#
##########################################################################
# Install packages from nix's official package repository.
#
# The packages installed here are available to all users, and are reproducible across machines, and are rollbackable.
# But on macOS, it's less stable than homebrew.
#
# Related Discussion: https://discourse.nixos.org/t/darwin-again/29331
environment.systemPackages = with pkgs; [
# CLI
neovim
git
just # use Justfile to simplify nix-darwin's commands
ffmpeg
fzf
bat
fastfetch
gh
lsd
jdk
jdk17
jdk11
mkalias
python310
tldr
tmux
tree
zoxide
zsh-powerlevel10k
zsh-fzf-tab
commitizen
# GUI
alt-tab-macos
bitwarden-desktop
bruno
discord
pretendard
google-chrome
iina
jetbrains.idea-ultimate
ice-bar
keka
postman
raycast
rectangle
slack
stats
telegram-desktop
vscode
zoom-us
];
environment.variables.EDITOR = "nvim";
# TODO To make this work, homebrew need to be installed manually, see https://brew.sh
#
# The apps installed by homebrew are not managed by nix, and not reproducible!
# But on macOS, homebrew has a much larger selection of apps than nixpkgs, especially for GUI apps!
homebrew = {
enable = true;
onActivation = {
autoUpdate = true; # Fetch the newest stable branch of Homebrew's git repo
upgrade = true; # Upgrade outdated casks, formulae, and App Store apps
# 'zap': uninstalls all formulae(and related files) not listed in the generated Brewfile
cleanup = "zap";
};
# Applications to install from Mac App Store using mas.
# You need to install all these Apps manually first so that your apple account have records for them.
# otherwise Apple Store will refuse to install them.
# For details, see https://github.com/mas-cli/mas
masApps = {
KakaoTalk = 869223134;
Across = 6444851827;
Flighty = 1358823008;
Numbers = 409203825;
Pages = 409201541;
Keynote = 409183694;
};
taps = [ ];
# `brew install`
brews = [
"wget"
"curl" # do not install curl via nixpkgs, it's not working well on macOS!
"node"
"uv"
];
# `brew install --cask`
casks = [
"claude"
"docker"
"daisydisk"
"ghostty"
"hammerspoon"
"hancom-docs"
"logi-options+"
"notion"
"onyx"
"readdle-spark"
"shottr"
"zen-browser"
];
};
}