From f562ed2b12d56a27932103db965f588fa1eb8da9 Mon Sep 17 00:00:00 2001 From: Danylo Hlynskyi Date: Thu, 10 Oct 2019 11:59:51 +0200 Subject: [PATCH] generate random password for root as initial configuration Some cloud providers allow web console login (Hetzner Cloud, for example). You can then login and fix network issues (if any). This change generates a password for root, so it is 1 step easier to do. --- nixos-infect | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/nixos-infect b/nixos-infect index 8430461..d70d2e0 100755 --- a/nixos-infect +++ b/nixos-infect @@ -4,11 +4,17 @@ set -e -o pipefail +ROOT_PASSWORD= + makeConf() { # Skip everything if main config already present [[ -e /etc/nixos/configuration.nix ]] && return 0 # NB <<"EOF" quotes / $ ` in heredocs, <