admin: initialPassword -> initialHashedPassword
This commit is contained in:
parent
7d683e712f
commit
301132e17e
2 changed files with 11 additions and 7 deletions
9
hosts/ooknode/default.nix
Normal file
9
hosts/ooknode/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
ooknet.host = {
|
||||
admin = {
|
||||
name = "ooks";
|
||||
shell = "fish";
|
||||
homeManager = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue