mirror of
https://github.com/smg1024/nix-darwin.git
synced 2026-05-22 20:32:59 +09:00
refactor(darwin): import via ./hosts
rename modules/ -> hosts/
This commit is contained in:
parent
cf1d776efa
commit
fb3f35e153
6 changed files with 9 additions and 6 deletions
|
|
@ -1,69 +0,0 @@
|
|||
{
|
||||
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"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue