Skip to content

Commit 790afd7

Browse files
committed
Merge branch 'main' of ssh://github.com/ryan4yin/nix-config
2 parents df9241d + 2195a59 commit 790afd7

File tree

5 files changed

+34
-9
lines changed

5 files changed

+34
-9
lines changed

home/base/tui/shell/default.nix

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,27 @@
1212
extraConfig = ''
1313
source /etc/agenix/alias-for-work.nushell
1414
15+
$env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC = "1"
1516
# using claude-code with kimi k2
16-
$env.ANTHROPIC_BASE_URL = "https://api.moonshot.cn/anthropic/"
17-
$env.ANTHROPIC_API_KEY = $env.MOONSHOT_API_KEY
17+
# https://platform.moonshot.cn/docs/guide/agent-support
18+
# $env.ANTHROPIC_BASE_URL = "https://api.moonshot.cn/anthropic/"
19+
# $env.ANTHROPIC_API_KEY = $env.MOONSHOT_API_KEY
20+
# $env.ANTHROPIC_MODEL = "kimi-k2-0905-preview"
21+
# $env.ANTHROPIC_DEFAULT_HAIKU_MODEL = "kimi-k2-turbo-preview"
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_API_KEY = $env.ZAI_API_KEY
27+
$env.ANTHROPIC_MODEL = "glm-4.6"
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_API_KEY = $env.DASHSCOPE_API_KEY
34+
# $env.ANTHROPIC_MODEL = "qwen-plus" # 千万别用 qwen-max, 价格
35+
# $env.ANTHROPIC_DEFAULT_HAIKU_MODEL = "qwen-turbo"
1836
1937
# Directories in this constant are searched by the
2038
# `use` and `source` commands.

home/linux/gui/hyprland/conf/keybindings.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,14 @@ bind = CTRL, Print, exec, hyprshot -m region -o ~/Pictures/Screenshots
136136
bind = CTRL ALT, l, exec, swaylock
137137
bind = $mod SHIFT, x, exec, wlogout
138138
bind = $mod, n, exec, nm-connection-editor # need install network-manager-applet
139+
140+
141+
# Gestures
142+
# ============================================================================
143+
# https://wiki.hypr.land/Configuring/Gestures/
144+
145+
# gesture = fingers, direction, action, options
146+
gesture = 3, horizontal, workspace
147+
gesture = 3, down, mod: ALT, close
148+
gesture = 3, up, mod: SUPER, scale: 1.5, fullscreen
149+

home/linux/gui/hyprland/conf/settings.conf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ master {
103103
new_on_top = true
104104
}
105105

106-
# See: https://wiki.hyprland.org/Configuring/Variables
107-
gestures {
108-
workspace_swipe = off
109-
}
110-
111106
#-- Input ----------------------------------------------------
112107
# Configure mouse and touchpad here.
113108
input {

home/linux/gui/hyprland/hyprland.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ in
6666
variables = [ "--all" ];
6767
};
6868
};
69+
services.polkit-gnome.enable = true; # polkit
6970

7071
# NOTE: this executable is used by greetd to start a wayland session when system boot up
7172
# with such a vendor-no-locking script, we can switch to another wayland compositor without modifying greetd's config in NixOS module

modules/nixos/desktop/fonts.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
defaultFonts = rec {
2121
serif = [
2222
# 西文: 衬线字体(笔画末端有修饰(衬线)的字体,通常用于印刷。)
23-
"Source Sans 3"
23+
"Source Serif 4"
2424
# 中文: 宋体(港台称明體)
2525
"Source Han Serif SC" # 思源宋体
2626
"Source Han Serif TC"
2727
];
2828
# SansSerif 也简写做 Sans, Sans 在法语中就是「without」或者「无」的意思
2929
sansSerif = [
3030
# 西文: 无衬线字体(指笔画末端没有修饰(衬线)的字体,通常用于屏幕显示)
31-
"Source Serif 4"
31+
"Source Sans 3"
3232
# 中文: 黑体
3333
"LXGW WenKai Screen" # 霞鹜文楷 屏幕阅读版
3434
"Source Han Sans SC" # 思源黑体

0 commit comments

Comments
 (0)