commit 26ff8fb6e2d63393b4ab5372664cff498bcf9526 parent 07af83e5f3d952ad736c1812d551a3294c5a51bb Author: Francesco Saccone <francesco@francescosaccone.com> Date: Tue, 18 Mar 2025 19:31:53 +0100 refactor: pass hashed password inline instead of reading file Signed-off-by: Francesco Saccone <francesco@francescosaccone.com> Diffstat:
M | homes/francesco/user/default.nix | | | 9 | ++++----- |
D | homes/francesco/user/hashedPassword.txt | | | 1 | - |
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/homes/francesco/user/default.nix b/homes/francesco/user/default.nix @@ -7,11 +7,10 @@ { users.users."francesco" = { description = "Francesco Saccone"; - hashedPassword = - let - hashedPassword = builtins.readFile ./hashedPassword.txt; - in - lib.strings.trim hashedPassword; + hashedPassword = builtins.concatStringsSep "" [ + "$y$j9T$OeFz3YZ.sA0W62wz7QEyr.$p8n5VCft9O6sdxSedIh4SQ7" + "JiXWgFI0/E5knPbX9y/3" + ]; isNormalUser = true; extraGroups = [ "networkmanager" diff --git a/homes/francesco/user/hashedPassword.txt b/homes/francesco/user/hashedPassword.txt @@ -1 +0,0 @@ -$y$j9T$OeFz3YZ.sA0W62wz7QEyr.$p8n5VCft9O6sdxSedIh4SQ7JiXWgFI0/E5knPbX9y/3