Skip to content

Commit 8989df0

Browse files
committed
Merge branch 'main' of ssh://github.com/ryan4yin/nix-config
2 parents 7d12f23 + f539b68 commit 8989df0

30 files changed

Lines changed: 395 additions & 127 deletions

File tree

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

home/base/core/core.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ pkgs, ... }:
1+
{ pkgs, pkgs-latest, ... }:
22
{
33
home.packages = with pkgs; [
44
# nix related
@@ -91,6 +91,7 @@
9191
# Additionally, it provides optional and fully encrypted
9292
# synchronisation of your history between machines, via an Atuin server.
9393
programs.atuin = {
94+
# package = pkgs-latest.atuin;
9495
enable = true;
9596
enableBashIntegration = true;
9697
enableZshIntegration = true;

home/base/core/npm.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# make `npm install -g <pkg>` happey
44
#
55
# mainly used to install npm packages that updates frequently
6-
# such as gemini-cli, claude-code, etc.
6+
# such as opencode, codex, etc.
77
home.file.".npmrc".text = ''
88
prefix=${config.home.homeDirectory}/.npm
99
'';

home/base/tui/custom/ai/onlineai.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
pkgs.aichat # A ai cli interface
1212
# LaphaeL-aicmd.packages.${pkgs.system}.laphael_aicmd
1313

14-
pkgs.opencode
14+
# pkgs.opencode # now we install this using npm
1515
];
1616
}

home/base/tui/dev-tools.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636

3737
# ai related
3838
python313Packages.huggingface-hub # huggingface-cli
39+
python313Packages.modelscope
40+
yt-dlp # youtube/bilibili/soundcloud/... video/music downloader
3941

4042
# misc
4143
devbox

home/base/tui/editors/packages.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@
9696
vscode-extensions.vadimcn.vscode-lldb.adapter # codelldb - debugger
9797

9898
#-- python
99+
uv # python project package manager
100+
pipx # Install and Run Python Applications in Isolated Environments
99101
(python313.withPackages (
100102
ps: with ps; [
101103
# python language server
102104
pyright
103105
ruff
104106

105-
pipx # Install and Run Python Applications in Isolated Environments
106107
black # python formatter
107-
uv # python project package manager
108108

109109
# my commonly used python packages
110110
jupyter

home/base/tui/shell/default.nix

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,6 @@
1212
extraConfig = ''
1313
source /etc/agenix/alias-for-work.nushell
1414
15-
$env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC = "1"
16-
# using claude-code with kimi k2
17-
# https://platform.moonshot.cn/docs/guide/agent-support
18-
# $env.ANTHROPIC_BASE_URL = "https://api.moonshot.cn/anthropic/"
19-
# $env.ANTHROPIC_AUTH_TOKEN = $env.MOONSHOT_API_KEY
20-
# $env.ANTHROPIC_MODEL = "kimi-k2-thinking"
21-
# $env.ANTHROPIC_DEFAULT_HAIKU_MODEL = "kimi-k2-thinking-turbo"
22-
23-
# using claude-code with glm llm
24-
# https://docs.bigmodel.cn/cn/coding-plan/tool/claude
25-
$env.ANTHROPIC_BASE_URL = "https://open.bigmodel.cn/api/anthropic"
26-
$env.ANTHROPIC_AUTH_TOKEN = $env.ZAI_API_KEY
27-
$env.ANTHROPIC_MODEL = "glm-4.7"
28-
$env.ANTHROPIC_DEFAULT_HAIKU_MODEL = "glm-4.5-air"
29-
30-
# using claude-code with qwen llm
31-
# https://bailian.console.aliyun.com/?tab=doc#/doc/?type=model&url=2949529
32-
# $env.ANTHROPIC_BASE_URL = "https://dashscope.aliyuncs.com/apps/anthropic"
33-
# $env.ANTHROPIC_AUTH_TOKEN = $env.DASHSCOPE_API_KEY
34-
# $env.ANTHROPIC_MODEL = "qwen-plus" # 千万别用 qwen-max, 超级无敌贵
35-
# $env.ANTHROPIC_DEFAULT_HAIKU_MODEL = "qwen-turbo"
36-
3715
# Directories in this constant are searched by the
3816
# `use` and `source` commands.
3917
const NU_LIB_DIRS = $NU_LIB_DIRS ++ ['${nu_scripts}']

home/darwin/shell.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
{ lib, ... }:
1+
{ config, lib, ... }:
22
let
33
envExtra = ''
4-
export PATH="$PATH:/opt/homebrew/bin:/usr/local/bin"
4+
export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH"
55
'';
66
# copied from the content generated by `conda init bash`
77
initContent = ''
@@ -34,6 +34,7 @@ in
3434
};
3535
programs.zsh = {
3636
enable = true;
37+
dotDir = "${config.xdg.configHome}/zsh";
3738
inherit envExtra initContent;
3839
};
3940
}

home/linux/gui/base/editors.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ in
1717
{
1818
home.packages = [
1919
pkgs-master.code-cursor
20-
pkgs-master.zed-editor
21-
# pkgs-master.antigravity-fhs
2220
];
2321

2422
programs.vscode = {

home/linux/gui/base/xdg/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
enable = true;
2929
createDirectories = true;
3030
extraConfig = {
31-
XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
31+
SCREENSHOTS = "${config.xdg.userDirs.pictures}/Screenshots";
3232
};
3333
};
3434
};

0 commit comments

Comments
 (0)