mirror of
https://github.com/smg1024/nix-darwin.git
synced 2026-05-22 20:32:59 +09:00
feat: nix-darwin-kickstarter minimal
This commit is contained in:
parent
5e30ed38cd
commit
248170c877
9 changed files with 111 additions and 289 deletions
|
|
@ -1,116 +1,46 @@
|
|||
{ 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
|
||||
git
|
||||
just # use Justfile to simplify nix-darwin's commands
|
||||
ffmpeg
|
||||
fzf
|
||||
bat
|
||||
fastfetch
|
||||
gh
|
||||
lsd
|
||||
mkalias
|
||||
python310
|
||||
tldr
|
||||
tmux
|
||||
tree
|
||||
zoxide
|
||||
zsh-powerlevel10k
|
||||
zsh-fzf-tab
|
||||
commitizen
|
||||
vim
|
||||
curl
|
||||
];
|
||||
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
|
||||
autoUpdate = true;
|
||||
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;
|
||||
Bitwarden = 1352778147;
|
||||
};
|
||||
|
||||
taps = [ ];
|
||||
|
||||
# `brew install`
|
||||
# WARNING only include those not in nixpkgs
|
||||
brews = [
|
||||
"wget"
|
||||
"curl" # do not install curl via nixpkgs, it's not working well on macOS!
|
||||
"nvm"
|
||||
"uv"
|
||||
"openjdk"
|
||||
"openjdk@21"
|
||||
"openjdk@17"
|
||||
"neovim"
|
||||
"ripgrep"
|
||||
"tree-sitter"
|
||||
# "neovim"
|
||||
# "ripgrep"
|
||||
# "fd"
|
||||
];
|
||||
|
||||
# `brew install --cask`
|
||||
casks = [
|
||||
"alt-tab"
|
||||
"bruno"
|
||||
"discord"
|
||||
"google-chrome"
|
||||
"iina"
|
||||
"intellij-idea"
|
||||
"jordanbaird-ice"
|
||||
"keka"
|
||||
"raycast"
|
||||
"rectangle"
|
||||
"slack"
|
||||
"stats"
|
||||
"telegram"
|
||||
"visual-studio-code"
|
||||
"zoom"
|
||||
"claude"
|
||||
"batfi"
|
||||
"docker-desktop"
|
||||
"cursor"
|
||||
"daisydisk"
|
||||
"ghostty"
|
||||
"hammerspoon"
|
||||
"hancom-docs"
|
||||
"logi-options+"
|
||||
"notion"
|
||||
"onyx"
|
||||
"shottr"
|
||||
"arc"
|
||||
"obsidian"
|
||||
"antigravity"
|
||||
"figma"
|
||||
# "google-chrome"
|
||||
# "iina"
|
||||
# "jordanbaird-ice"
|
||||
# "keka"
|
||||
# "shottr"
|
||||
# "raycast"
|
||||
# "stats"
|
||||
|
||||
# Fonts
|
||||
"font-fontawesome"
|
||||
|
|
@ -121,6 +51,7 @@
|
|||
"font-symbols-only-nerd-font"
|
||||
"font-material-design-icons-webfont"
|
||||
"font-pretendard"
|
||||
"font-maple-mono-nf"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue