fix(home): 修复 26.05 弃用警告 (zsh initContent, ssh enableDefaultConfig)

This commit is contained in:
2026-08-13 19:51:02 +08:00
parent ab4d5e1924
commit d71fab81d5
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,8 @@ let
in in
{ {
programs.ssh.enable = true; programs.ssh.enable = true;
# 26.05: 显式关闭默认配置生成,避免未来默认值移除警告
programs.ssh.enableDefaultConfig = false;
home.file = lib.mkIf secretsEnabled { home.file = lib.mkIf secretsEnabled {
# ~/.ssh/id_rsa 来自 sops secret 文件。 # ~/.ssh/id_rsa 来自 sops secret 文件。

View File

@@ -18,7 +18,8 @@
# options 属性在 home-manager 中不存在,用 setopt 命令代替 # options 属性在 home-manager 中不存在,用 setopt 命令代替
# 初始化 - 对应 .zshrc 中的 Powerlevel10k instant prompt 和函数定义 # 初始化 - 对应 .zshrc 中的 Powerlevel10k instant prompt 和函数定义
initExtra = '' # 26.05: initExtra 已弃用,改名为 initContent
initContent = ''
# Shell options # Shell options
setopt correct setopt correct
setopt interactive_comments setopt interactive_comments