configuration: users: use hashedPassword

This commit is contained in:
Bruno BELANYI 2021-02-04 22:00:04 +01:00
parent 34ff469b6d
commit 7ca077adf7
3 changed files with 4 additions and 1 deletions

View file

@ -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

Binary file not shown.

Binary file not shown.