security: comment out plaintext initialPassword
Temporary first-install shortcut kept as comment only; avoid plaintext password landing in /nix/store (world-readable).
This commit is contained in:
@@ -2,4 +2,4 @@ creation_rules:
|
||||
- path_regex: ^secrets/users/.*\.ya?ml$
|
||||
key_groups:
|
||||
- age:
|
||||
- age1REPLACE_WITH_YOUR_AGE_PUBLIC_KEY
|
||||
- age1REPLACE_WITH_YOUR_AGE_PUBLIC_KEY
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
shell = pkgs.zsh;
|
||||
}
|
||||
// lib.optionalAttrs (!(config.sops.secrets ? "users/luochen570/passwordHash")) {
|
||||
initialPassword = "Dly928730@..";
|
||||
# 安装新机时的临时密码快捷方式(明文仅用于首次安装,装完请改用 sops 哈希或移除)。
|
||||
# 需要时解开注释使用;平时保持注释,避免明文进入 /nix/store。
|
||||
# initialPassword = "Dly928730@..";
|
||||
}
|
||||
// lib.optionalAttrs (config.sops.secrets ? "users/luochen570/authorized_key") {
|
||||
openssh.authorizedKeys.keyFiles = [ config.sops.secrets."users/luochen570/authorized_key".path ];
|
||||
|
||||
Reference in New Issue
Block a user