From d71fab81d54fb1c60233710c62dea0d1504079cd Mon Sep 17 00:00:00 2001 From: luochen570 <1160510664@qq.com> Date: Thu, 13 Aug 2026 19:51:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(home):=20=E4=BF=AE=E5=A4=8D=2026.05=20?= =?UTF-8?q?=E5=BC=83=E7=94=A8=E8=AD=A6=E5=91=8A=20(zsh=20initContent,=20ss?= =?UTF-8?q?h=20enableDefaultConfig)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/ssh.nix | 2 ++ home/zsh.nix | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/home/ssh.nix b/home/ssh.nix index 91e06a4..122f5e3 100644 --- a/home/ssh.nix +++ b/home/ssh.nix @@ -5,6 +5,8 @@ let in { programs.ssh.enable = true; + # 26.05: 显式关闭默认配置生成,避免未来默认值移除警告 + programs.ssh.enableDefaultConfig = false; home.file = lib.mkIf secretsEnabled { # ~/.ssh/id_rsa 来自 sops secret 文件。 diff --git a/home/zsh.nix b/home/zsh.nix index 6496206..00eddd3 100644 --- a/home/zsh.nix +++ b/home/zsh.nix @@ -18,7 +18,8 @@ # options 属性在 home-manager 中不存在,用 setopt 命令代替 # 初始化 - 对应 .zshrc 中的 Powerlevel10k instant prompt 和函数定义 - initExtra = '' + # 26.05: initExtra 已弃用,改名为 initContent + initContent = '' # Shell options setopt correct setopt interactive_comments