mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 05:39:05 +08:00
用户密码使用明文 hashedPassword
This commit is contained in:
parent
b5e5136d12
commit
8eab8fc4f0
@ -12,7 +12,11 @@ inputs:
|
||||
{
|
||||
users =
|
||||
{
|
||||
root.shell = inputs.pkgs.zsh;
|
||||
root =
|
||||
{
|
||||
shell = inputs.pkgs.zsh;
|
||||
hashedPassword = "$y$j9T$.UyKKvDnmlJaYZAh6./rf/$65dRqishAiqxCE6LEMjqruwJPZte7uiyYLVKpzdZNH5";
|
||||
};
|
||||
chn =
|
||||
{
|
||||
isNormalUser = true;
|
||||
@ -21,16 +25,17 @@ inputs:
|
||||
(builtins.attrNames inputs.config.users.groups);
|
||||
shell = inputs.pkgs.zsh;
|
||||
autoSubUidGidRange = true;
|
||||
hashedPassword = "$y$j9T$xJwVBoGENJEDSesJ0LfkU1$VEExaw7UZtFyB4VY1yirJvl7qS7oiF49KbEBrV0.hhC";
|
||||
};
|
||||
};
|
||||
mutableUsers = false;
|
||||
};
|
||||
}
|
||||
(mkMerge (map (user:
|
||||
{
|
||||
sops.secrets."password/${user}".neededForUsers = true;
|
||||
users.users.${user}.passwordFile = inputs.config.sops.secrets."password/${user}".path;
|
||||
}) [ "root" "chn" ]))
|
||||
# (mkMerge (map (user:
|
||||
# {
|
||||
# sops.secrets."password/${user}".neededForUsers = true;
|
||||
# users.users.${user}.passwordFile = inputs.config.sops.secrets."password/${user}".path;
|
||||
# }) [ "root" "chn" ]))
|
||||
{
|
||||
home-manager =
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user