Skip to content

Commit

Permalink
refactor: homebrew apps
Browse files Browse the repository at this point in the history
  • Loading branch information
s3igo committed Sep 26, 2024
1 parent ad192e2 commit cd9aa72
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 49 deletions.
48 changes: 0 additions & 48 deletions modules/apps.nix

This file was deleted.

2 changes: 1 addition & 1 deletion modules/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
imports = [
../secrets.nix
../system.nix
../apps.nix
../vim
./homebrew.nix
./home-manager.nix
./system.nix
Expand Down
45 changes: 45 additions & 0 deletions modules/darwin/homebrew.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
config,
user,
inputs,
...
Expand All @@ -18,4 +19,48 @@
};
mutableTaps = false;
};

homebrew = {
enable = true;
onActivation = {
autoUpdate = false;
upgrade = false;
cleanup = "zap";
};
taps = builtins.attrNames config.nix-homebrew.taps;
casks = [
"1password"
"anytype"
"arc"
"cursor"
"discord"
"firefox"
# "font-ipaexfont"
# "font-noto-sans-cjk-jp"
# "font-zen-kaku-gothic-new"
"google-chrome"
"google-japanese-ime"
"macos-fuse-t/homebrew-cask/fuse-t"
"monitorcontrol"
"mullvadvpn"
"ollama"
"orbstack"
"raycast"
"slack"
"steam"
# "thorium"
"visual-studio-code"
"vivaldi"
"whisky"
"zed"
"zen-browser"
"zoom"
{
name = "chromium";
args.no_quarantine = true;
}
];
# Install manually due to the error of `darwin-rebuild`
# masApps.Bitwarden = 1352778147;
};
}

0 comments on commit cd9aa72

Please sign in to comment.