diff --git a/configuration.nix b/configuration.nix index a56861f..5ff6a02 100644 --- a/configuration.nix +++ b/configuration.nix @@ -47,8 +47,11 @@ # Select internationalisation properties. 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 = { + hashedPassword = lib.fileContents ./secrets/users/ambroisie/password.txt; + description = "Bruno BELANYI"; isNormalUser = true; extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. openssh.authorizedKeys.keys = with builtins; let diff --git a/secrets/users/ambroisie/password.txt b/secrets/users/ambroisie/password.txt new file mode 100644 index 0000000..65fbdfb Binary files /dev/null and b/secrets/users/ambroisie/password.txt differ diff --git a/secrets/users/root/password.txt b/secrets/users/root/password.txt new file mode 100644 index 0000000..6fe87e9 Binary files /dev/null and b/secrets/users/root/password.txt differ