feat: add apps(using homebrew), update shells

This commit is contained in:
Ryan Yin
2023-07-05 16:53:50 +08:00
parent 4af3fa88dd
commit acd7f8308c
4 changed files with 15 additions and 22 deletions

View File

@@ -6,7 +6,6 @@
./alacritty
./core.nix
./nushell.nix
];
# Home Manager needs a bit of information about you and the

View File

@@ -1,15 +0,0 @@
{ ... }: {
# nushell's PATH do not include nix-darwin's PATH
# this is a workaround to add nix-darwin's PATH to nushell's PATH
programs.nushell.extraConfig = ''
let-env PATH = ([
"~/.nix-profile/bin"
"/etc/profiles/per-user/admin/bin"
"/run/current-system/sw/bin"
"/nix/var/nix/profiles/default/bin"
($env.PATH | split row (char esep))
] | flatten)
'';
}

View File

@@ -48,6 +48,7 @@
brews = [
# `brew install`
"httpie"
"wireguard-tools"
];
# `brew install --cask`
@@ -59,6 +60,13 @@
"telegram"
"discord"
"wechat"
"qq"
"neteasemusic"
"qqmusic"
"microsoft-remote-desktop"
"wechatwork"
"tencent-meeting"
# "anki"
"clashx"
@@ -67,8 +75,9 @@
"syncthing"
"raycast"
"iglance"
"eudic"
# "reaper"
"iterm2"
"insomnia"
"wireshark"
"jdk-mission-control"

View File

@@ -1,5 +1,5 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
###################################################################################
#
@@ -72,10 +72,10 @@
home = "/Users/admin";
description = "admin";
# set user's default shell to nushell
# this may not work, to change the default shell manually, use
# `chsh -s /run/current-system/sw/bin/nu`
shell = pkgs.nushell;
# set user's default shell back to zsh
# `chsh -s /bin/zsh`
# DO NOT change the system's default shell to nushell! it will break some apps!
# It's better to change only starship/alacritty/vscode's shell to nushell!
};
# Create /etc/zshrc that loads the nix-darwin environment.