admin: initialPassword -> initialHashedPassword

This commit is contained in:
ooks-io 2024-10-29 16:45:59 +11:00
parent 7d683e712f
commit 301132e17e
2 changed files with 11 additions and 7 deletions

View file

@ -2,15 +2,10 @@
lib,
config,
pkgs,
inputs,
inputs',
self',
self,
keys,
...
}: let
inherit (lib) mkIf;
inherit (config.ooknet.host) role admin;
inherit (config.ooknet.host) admin;
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
@ -18,7 +13,7 @@ in {
users.users.${admin.name} = {
isNormalUser = true;
shell = pkgs.${admin.shell};
initialPassword = "password";
initialHashedPassword = "$y$j9T$l4Wje1zgcrPIM5G4BRAT6.$AKHmE2MvJLLiipYnwGsljxbD0QmqYtHGlKht0kLLI87";
openssh.authorizedKeys.keys = [keys.users."${admin.name}"];
createHome = true;
home = "/home/${admin.name}";