configuration: users: use hashedPassword
This commit is contained in:
parent
34ff469b6d
commit
7ca077adf7
|
@ -47,8 +47,11 @@
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define user accounts and passwords.
|
||||||
|
users.users.root.hashedPassword = lib.fileContents ./secrets/users/root/password.txt;
|
||||||
users.users.ambroisie = {
|
users.users.ambroisie = {
|
||||||
|
hashedPassword = lib.fileContents ./secrets/users/ambroisie/password.txt;
|
||||||
|
description = "Bruno BELANYI";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||||
openssh.authorizedKeys.keys = with builtins; let
|
openssh.authorizedKeys.keys = with builtins; let
|
||||||
|
|
BIN
secrets/users/ambroisie/password.txt
Normal file
BIN
secrets/users/ambroisie/password.txt
Normal file
Binary file not shown.
BIN
secrets/users/root/password.txt
Normal file
BIN
secrets/users/root/password.txt
Normal file
Binary file not shown.
Loading…
Reference in a new issue