This commit is contained in:
iFargle 2024-02-01 20:21:19 +09:00
parent bfc6c76bae
commit 59b0758b9b

View file

@ -38,7 +38,7 @@ if [ ! -e "nixos/hosts/$TARGET_HOST/disks.nix" ]; then
fi fi
# Create a key for encrypted swap, if needed # 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 "WARNING! The disks in $TARGET_HOST are about to get wiped"
echo " NixOS will be re-installed" echo " NixOS will be re-installed"