From 3f6d7cf43d1010ec6514c2c2fabf0fbeb16fd12e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Billet?= Date: Tue, 2 Dec 2025 17:16:12 +0100 Subject: [PATCH] Aesthetics --- deploy.sh | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/deploy.sh b/deploy.sh index 5c02b3f..ce53cea 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,17 +1,6 @@ #!/usr/bin/env nix-shell #!nix-shell -i bash -p gum openssl sops ssh-to-age age sshpass envsubst pciutils usbutils mosquitto -prerun_action() { - echo -e "$1" - SETUP_ANSWER="$(gum input --placeholder 'Type "done" when you have finished.')" - if [[ "$SETUP_ANSWER" == "done" ]]; then - : - else - echo ' ❌ Aborting - you did not type "done".' - exit 1 - fi -} - necessary_credentials() { #TARGET SETTINGS echo -e "\n\n ➑️ Please provide the IP address of the target host :" @@ -230,7 +219,7 @@ files_generation() { echo -e "\n βœ… Adapting the docker configuration to your hardware..." DEVICES_BLOCK="" if [[ "$TARGET_GRAPHICS_RENDERER" == "true" ]]; then - DEVICES_BLOCK+=" - /dev/dri/renderD300:/dev/dri/renderD300\n" + DEVICES_BLOCK+=" - /dev/dri/renderD128:/dev/dri/renderD128\n" fi if [[ "$TARGET_USB_CORAL" == "true" ]]; then DEVICES_BLOCK+=" - /dev/bus/usb:/dev/bus/usb\n" @@ -482,6 +471,10 @@ deploy() { sleep 1 } +postrun_action() { + echo "" +} + nixos_update() { echo -e "\n\n πŸ”„ Updating NixOS on the remote server..." echo "coming soon !" @@ -498,9 +491,9 @@ cat <