diff --git a/docs/install.sh b/docs/install.sh index 51aed88b..c0b678a9 100755 --- a/docs/install.sh +++ b/docs/install.sh @@ -38,7 +38,7 @@ if [ ! -e "nixos/hosts/$TARGET_HOST/disks.nix" ]; then fi # Create a key for encrypted swap, if needed -openssl rand -hex 512 > /etc/swap.key +sudo echo -n "$(head -c32 /dev/random | base64)" > /etc/swap.key echo "WARNING! The disks in $TARGET_HOST are about to get wiped" echo " NixOS will be re-installed"