Skip to content

Commit

Permalink
Update darwin profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
yousiki committed Mar 16, 2024
1 parent b16a495 commit d00f3ac
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 106 deletions.
87 changes: 87 additions & 0 deletions src/configurations/darwin/sakamoto/_applications.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Install macOS applications with homebrew.
{
config,
lib,
pkgs,
...
}: {
# Homebrew casks.
homebrew.casks = [
"1password"
"adobe-creative-cloud"
"adrive"
"alt-tab"
"altserver"
"arc"
"baidunetdisk"
"balenaetcher"
"bilibili"
"brave-browser"
"cloudflare-warp"
"cyberduck"
"discord"
"element"
"feishu"
"firefox"
"font-caskaydia-cove-nerd-font"
"font-fira-code-nerd-font"
"font-jetbrains-mono-nerd-font"
"font-lxgw-bright"
"font-lxgw-wenkai"
"font-monaspace"
"github"
"google-chrome"
"google-drive"
"handbrake"
"hiddenbar"
"iina"
"itsycal"
"jetbrains-toolbox"
"keepingyouawake"
"keka"
"kitty"
"logitech-options"
"maccy"
"microsoft-auto-update"
"microsoft-office"
"microsoft-remote-desktop"
"miniconda"
"monitorcontrol"
"mos"
"motrix"
"mounty"
"neteasemusic"
"obs"
"obsidian"
"onyx"
"orbstack"
"plex"
"poe"
"qfinder-pro"
"qq"
"qsync-client"
"qudedup-extract-tool"
"raycast"
"rectangle"
"sioyek"
"spotify"
"squirrel"
"stats"
"steam"
"tailscale"
"tencent-meeting"
"transmission"
"visual-studio-code"
"warp"
"wechat"
"wezterm"
"xpra"
"xquartz"
"zed"
"zotero-beta"
];

environment.systemPackages = with globals.outputs.packages.${pkgs.system}; [
lporg # LaunchPad orgnaizer
];
}
3 changes: 2 additions & 1 deletion src/configurations/darwin/sakamoto/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
{globals, ...}: let
darwinModules = with globals.outputs; [
# Host-specific modules
./_applications.nix
./_configuration.nix

# Host specific profiles
commonProfiles.nix
commonProfiles.packages
darwinProfiles.applications
darwinProfiles.homebrew

# Home-manager module
globals.inputs.home-manager.darwinModules.home-manager
Expand Down
50 changes: 24 additions & 26 deletions src/profiles/common/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,30 @@
...
}:
with builtins // lib; {
environment.systemPackages = with pkgs // globals.outputs.packages.${pkgs.system};
[
alejandra
curl
duf
eza
fd
fzf
gdu
gh
git
helix
home-manager
htop
jq
man
neofetch
nodejs
nvfetcher
ripgrep
rsync
vim
wget
zellij
]
++ (optionals pkgs.stdenv.isDarwin [lporg]);
environment.systemPackages = with pkgs; [
alejandra
curl
duf
eza
fd
fzf
gdu
gh
git
helix
home-manager
htop
jq
man
neofetch
nodejs
nvfetcher
ripgrep
rsync
vim
wget
zellij
];

programs.fish.enable = true;
programs.tmux.enable = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Install macOS applications with homebrew.
# Configure homebrew for macOS.
# Note that TUNA mirror is enabled for better experience in China.
{globals, ...}: {
config,
lib,
pkgs,
...
}:
with builtins // lib; {
}: {
homebrew.enable = true;

# Upgrade and uninstall homebrew casks automatically.
Expand Down Expand Up @@ -43,82 +43,6 @@ with builtins // lib; {
}
];

# Add casks.
homebrew.casks = [
"1password"
"adobe-creative-cloud"
"adrive"
"alt-tab"
"altserver"
"arc"
"baidunetdisk"
"balenaetcher"
"bilibili"
"brave-browser"
"cloudflare-warp"
"cyberduck"
"discord"
"element"
"feishu"
"firefox"
"font-caskaydia-cove-nerd-font"
"font-fira-code-nerd-font"
"font-jetbrains-mono-nerd-font"
"font-lxgw-bright"
"font-lxgw-wenkai"
"font-monaspace"
"github"
"google-chrome"
"google-drive"
"handbrake"
"hiddenbar"
"iina"
"itsycal"
"jetbrains-toolbox"
"keepingyouawake"
"keka"
"kitty"
"logitech-options"
"maccy"
"microsoft-auto-update"
"microsoft-office"
"microsoft-remote-desktop"
"miniconda"
"monitorcontrol"
"mos"
"motrix"
"mounty"
"neteasemusic"
"obs"
"obsidian"
"onyx"
"orbstack"
"plex"
"poe"
"qfinder-pro"
"qq"
"qsync-client"
"qudedup-extract-tool"
"raycast"
"rectangle"
"sioyek"
"spotify"
"squirrel"
"stats"
"steam"
"tailscale"
"tencent-meeting"
"transmission"
"visual-studio-code"
"warp"
"wechat"
"wezterm"
"xpra"
"xquartz"
"zed"
"zotero-beta"
];

environment.systemPath =
if pkgs.system == "aarch64-darwin"
then [
Expand Down

0 comments on commit d00f3ac

Please sign in to comment.