From 5e7fd4869ba9b549bfa03d6a97badad2872c0631 Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Wed, 21 Apr 2021 12:53:35 +0300 Subject: [PATCH] Moved hash generation engine to the backend --- nixos-infect | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos-infect b/nixos-infect index a90a9eb..d37d700 100755 --- a/nixos-infect +++ b/nixos-infect @@ -5,6 +5,7 @@ set -e -o pipefail makeConf() { + export HASHED_PASSWORD=$( mkpasswd -m sha-512 "$PASSWORD" ) # Skip everything if main config already present [[ -e /etc/nixos/configuration.nix ]] && return 0 # NB <<"EOF" quotes / $ ` in heredocs, <