From 7ca077adf73e1316f10fa15f9013deeee60bbb68 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 4 Feb 2021 22:00:04 +0100 Subject: [PATCH] configuration: users: use hashedPassword --- configuration.nix | 5 ++++- secrets/users/ambroisie/password.txt | Bin 0 -> 124 bytes secrets/users/root/password.txt | Bin 0 -> 126 bytes 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 secrets/users/ambroisie/password.txt create mode 100644 secrets/users/root/password.txt 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 0000000000000000000000000000000000000000..65fbdfb1aae3c1e3179762bdc36d446ba6787933 GIT binary patch literal 124 zcmV-?0E7PkM@dveQdv+`0N#Ol%0b3EY#6Ej{^@8R?MfUZ34sNR-eZtr4h(Vg)kJng z&vU|Tp4hV8 z=`o0~0JI=#JIGi~$?t8w_AE{6K&2#=LdB$IhLY5)KL literal 0 HcmV?d00001