From 28ab587921ebcf8911a040bc1080649d7c735c4a Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Mon, 12 Feb 2024 20:37:58 -0600 Subject: [PATCH] Add changing password instructions --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4454fa1..ae11aec 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,13 @@ sudo nixos-rebuild switch --flake .#thehostnameyousetinoptions.nix ### You Are Done! -This Flake's user will have the password be set for them as *password*. +This Flake's user will have the password be set for them as *password*. If you want to change it run a command replacing password with whatever you want to be your password. You then need to copy the output that it gives you like below into your hashedPassword in the system.nix file. + +``` + mkpasswd -m sha-512 password + +$6$YdPBODxytqUWXCYL$AHW1U9C6Qqkf6PZJI54jxFcPVm2sm/XWq3Z1qa94PFYz0FF.za9gl5WZL/z/g4nFLQ94SSEzMg5GMzMjJ6Vd7. +``` Now when you want to rebuild the configuration you have access to an alias called flake-rebuild that will rebuild the flake based of the flakeDir variable you set in options.nix!