fix(home): 修复 26.05 弃用警告 (zsh initContent, ssh enableDefaultConfig)
This commit is contained in:
@@ -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 文件。
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user