mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-23 18:01:25 +01:00
feat: install some apps from apple store instead of homebrew
feat: replace username with ryan fix: secrets
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
system = {
|
||||
|
||||
# activationScripts are executed every time you boot the system or run `nixos-rebuild`.
|
||||
# activationScripts are executed every time you boot the system or run `nixos-rebuild` / `darwin-rebuild`.
|
||||
activationScripts.postUserActivation.text = ''
|
||||
# activateSettings -u will reload the settings from the database and apply them to the current session,
|
||||
# so we do not need to logout and login again to make the changes take effect.
|
||||
@@ -125,8 +125,19 @@
|
||||
};
|
||||
};
|
||||
|
||||
# Homebrew Mirror
|
||||
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";
|
||||
};
|
||||
|
||||
homebrew = {
|
||||
enable = true;
|
||||
# TODO Homebrew install takes a long time,
|
||||
# So only enable this when you make changes.
|
||||
enable = false;
|
||||
|
||||
onActivation = {
|
||||
autoUpdate = false;
|
||||
@@ -135,8 +146,17 @@
|
||||
};
|
||||
|
||||
# Applications to install from Mac App Store using mas.
|
||||
# You need to install all these Apps manually first so that your apple account have records for them.
|
||||
# otherwise Apple Store will refuse to install them.
|
||||
# For details, see https://github.com/mas-cli/mas
|
||||
masApps = {
|
||||
# Xcode = 497799835;
|
||||
Wechat = 836500024;
|
||||
QQ = 451108668;
|
||||
WeCom = 1189898970; # Wechat for Work
|
||||
TecentMetting = 1484048379;
|
||||
NeteaseCloudMusic = 944848654;
|
||||
QQMusic = 595615424;
|
||||
};
|
||||
|
||||
taps = [
|
||||
@@ -161,7 +181,6 @@
|
||||
|
||||
# `brew install --cask`
|
||||
casks = [
|
||||
# broser & editor
|
||||
"firefox"
|
||||
"google-chrome"
|
||||
"visual-studio-code"
|
||||
@@ -169,13 +188,9 @@
|
||||
# IM & audio & remote desktop & meeting
|
||||
"telegram"
|
||||
"discord"
|
||||
"wechat"
|
||||
"qq"
|
||||
"neteasemusic"
|
||||
"qqmusic"
|
||||
"microsoft-remote-desktop"
|
||||
"wechatwork"
|
||||
"tencent-meeting"
|
||||
|
||||
# "anki"
|
||||
"clashx" # proxy tool
|
||||
@@ -185,7 +200,6 @@
|
||||
"raycast" # (HotKey: alt/option + space)search, caculate and run scripts(with many plugins)
|
||||
"iglance" # beautiful system monitor
|
||||
"eudic" # 欧路词典
|
||||
"baiduinput" # baidu input method
|
||||
# "reaper" # audio editor
|
||||
|
||||
# Development
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
# enable flakes globally
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
nix.settings.trusted-users = ["admin"];
|
||||
nix.settings.trusted-users = ["ryan"];
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
@@ -44,7 +44,9 @@
|
||||
security.pam.enableSudoTouchIdAuth = true;
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Asia/Shanghai";
|
||||
# comment this due to the issue:
|
||||
# https://github.com/LnL7/nix-darwin/issues/359
|
||||
# time.timeZone = "Asia/shanghai";
|
||||
|
||||
# Apps
|
||||
# `home-manager` currently has issues adding them to `~/Applications`
|
||||
@@ -80,9 +82,9 @@
|
||||
};
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.admin = {
|
||||
home = "/Users/admin";
|
||||
description = "admin";
|
||||
users.users.ryan = {
|
||||
home = "/Users/ryan";
|
||||
description = "ryan";
|
||||
|
||||
# set user's default shell back to zsh
|
||||
# `chsh -s /bin/zsh`
|
||||
|
||||
Reference in New Issue
Block a user