Skip to content

Commit

Permalink
Update configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
yousiki committed Nov 19, 2024
1 parent 794f5e4 commit 6efec0c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions modules/darwin/basic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,29 @@

# The platform the configuration will be used on.
nixpkgs.hostPlatform = system;

# Enable Homebrew for casks.
homebrew = {
enable = true;
# Upgrade and uninstall homebrew casks automatically.
onActivation = {
autoUpdate = true;
upgrade = true;
# cleanup = "uninstall";
};
};

# Set environment variables.
environment.variables = {
HOMEBREW_API_DOMAIN = "https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api";
HOMEBREW_BOTTLE_DOMAIN = "https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles";
HOMEBREW_BREW_GIT_REMOTE = "https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git";
HOMEBREW_CORE_GIT_REMOTE = "https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git";
HOMEBREW_PIP_INDEX_URL = "https://pypi.tuna.tsinghua.edu.cn/simple";
};

# Add homebrew taps.
homebrew.taps = [
"buo/cask-upgrade"
];
}

0 comments on commit 6efec0c

Please sign in to comment.