Skip to content

Commit 90658fc

Browse files
committed
feat(homebrew): split casks per host for multi-Mac support
Separate Homebrew casks into common (all hosts), personal (rick), and work modules so personal apps don't install on work machines.
1 parent 9dea64b commit 90658fc

File tree

5 files changed

+34
-12
lines changed

5 files changed

+34
-12
lines changed

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"rick" = mkDarwinSystem {
115115
hostname = "rick";
116116
username = defaultUsername;
117+
extraModules = [ ./systems/aarch64-darwin/homebrew/personal.nix ];
117118
};
118119
};
119120

systems/aarch64-darwin/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ let
44
versions = import ../../common/versions.nix;
55
constants = import ../../common/constants.nix;
66
in {
7-
imports = [ ./homebrew.nix ./defaults.nix ./dock.nix ];
7+
imports = [ ./homebrew/common.nix ./defaults.nix ./dock.nix ];
88

99
environment = {
1010
# macOS specific packages

systems/aarch64-darwin/homebrew.nix renamed to systems/aarch64-darwin/homebrew/common.nix

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ _:
1212
# Security & Password Management
1313
"1password"
1414
"1password-cli"
15-
"proton-pass"
16-
"ledger-wallet"
1715

1816
# Productivity Tools
1917
"raycast"
@@ -25,20 +23,12 @@ _:
2523
# Communication & Collaboration
2624
"linear-linear"
2725
"slack"
28-
"discord"
29-
"whatsapp"
30-
"telegram"
31-
"signal"
3226
"claude" # desktop
33-
"proton-drive"
3427

3528
# Development & Terminal
3629
"orbstack"
3730
"ghostty"
3831
"claude-code"
39-
"utm"
40-
"vagrant-vmware-utility"
41-
"winbox"
4232

4333
# Networking & VPN
4434
"arc"
@@ -48,7 +38,6 @@ _:
4838

4939
# Media & Entertainment
5040
"vlc"
51-
"zwift"
5241
];
5342
masApps = { };
5443
onActivation = {
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
_:
2+
3+
{
4+
homebrew.casks = [
5+
# Security & Privacy
6+
"proton-pass"
7+
"proton-drive"
8+
"ledger-wallet"
9+
10+
# Communication
11+
"discord"
12+
"whatsapp"
13+
"telegram"
14+
"signal"
15+
16+
# Fitness & Entertainment
17+
"zwift"
18+
19+
# Virtualization & Networking
20+
"utm"
21+
"vagrant-vmware-utility"
22+
"winbox"
23+
];
24+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
_:
2+
3+
{
4+
homebrew.casks = [
5+
# Communication
6+
"microsoft-teams"
7+
];
8+
}

0 commit comments

Comments
 (0)