mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-28 10:56:59 +02:00
feat: darwin - proxy & README, update brew apps
This commit is contained in:
13
README.md
13
README.md
@@ -110,12 +110,15 @@ just i3 debug
|
|||||||
For macOS:
|
For macOS:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# deploy harmonica's configuration(macOS Intel)
|
|
||||||
just ha
|
|
||||||
|
|
||||||
# If you are deploying for the first time,
|
# If you are deploying for the first time,
|
||||||
# enter a shell with essential packages available
|
# 1. install nix & homebrew manually.
|
||||||
# nix shell nixpkgs#just nixpkgs#git
|
# 2. prepare the deployment environment with essential packages available
|
||||||
|
nix-shell -p just nushell
|
||||||
|
# 3. comment home-manager's code in lib/macosSystem.nix to speed up the first deplyment.
|
||||||
|
# 4. comment out the proxy settings in scripts/darwin_set_proxy.py if the proxy is not ready yet.
|
||||||
|
|
||||||
|
# 4. deploy harmonica's configuration(macOS Intel)
|
||||||
|
just ha
|
||||||
|
|
||||||
# deploy fern's configuration(Apple Silicon)
|
# deploy fern's configuration(Apple Silicon)
|
||||||
just fe
|
just fe
|
||||||
|
|||||||
@@ -104,7 +104,6 @@ in {
|
|||||||
QQ = 451108668;
|
QQ = 451108668;
|
||||||
WeCom = 1189898970; # Wechat for Work
|
WeCom = 1189898970; # Wechat for Work
|
||||||
TecentMetting = 1484048379;
|
TecentMetting = 1484048379;
|
||||||
NeteaseCloudMusic = 944848654;
|
|
||||||
QQMusic = 595615424;
|
QQMusic = 595615424;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -167,6 +166,7 @@ in {
|
|||||||
# "reaper" # audio editor
|
# "reaper" # audio editor
|
||||||
"sonic-pi" # music programming
|
"sonic-pi" # music programming
|
||||||
"tencent-lemon" # macOS cleaner
|
"tencent-lemon" # macOS cleaner
|
||||||
|
"neteasemusic" # music
|
||||||
|
|
||||||
# Development
|
# Development
|
||||||
"mitmproxy" # HTTP/HTTPS traffic inspector
|
"mitmproxy" # HTTP/HTTPS traffic inspector
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ from pathlib import Path
|
|||||||
NIX_DAEMON_PLIST = Path("/Library/LaunchDaemons/org.nixos.nix-daemon.plist")
|
NIX_DAEMON_PLIST = Path("/Library/LaunchDaemons/org.nixos.nix-daemon.plist")
|
||||||
NIX_DAEMON_NAME = "org.nixos.nix-daemon"
|
NIX_DAEMON_NAME = "org.nixos.nix-daemon"
|
||||||
# http proxy provided by clash or other proxy tools
|
# http proxy provided by clash or other proxy tools
|
||||||
HTTP_PROXY = "http://127.0.0.1:7890"
|
HTTP_PROXY = "http://192.168.5.201:7890"
|
||||||
|
|
||||||
pl = plistlib.loads(NIX_DAEMON_PLIST.read_bytes())
|
pl = plistlib.loads(NIX_DAEMON_PLIST.read_bytes())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user