From 43a27ab3bad5c9609a4ed0e0d6513847791442d7 Mon Sep 17 00:00:00 2001 From: Roy Dumblauskas Date: Sat, 3 May 2025 22:21:43 -0500 Subject: [PATCH] removed ssh key path --- nixos/script.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/nixos/script.sh b/nixos/script.sh index 10e67b5..d4efb7f 100755 --- a/nixos/script.sh +++ b/nixos/script.sh @@ -5,7 +5,6 @@ target_hostname="" target_destination="" target_user=${BOOTSTRAP_USER-root} # Set BOOTSTRAP_ defaults in your shell.nix ssh_port=${BOOTSTRAP_SSH_PORT-22} -ssh_key=${BOOTSTRAP_SSH_KEY-} # ---HELPER FUNCTIONS START--- SOPS_FILE=".sops.yaml" @@ -72,14 +71,11 @@ function help_and_exit() { echo echo "Remotely installs NixOS on a target machine using this nix-config." echo - echo "USAGE: $0 -n -d -k [OPTIONS]" + echo "USAGE: $0 -n -d [OPTIONS]" echo echo "ARGS:" echo " -n specify target_hostname of the target host to deploy the nixos config on." echo " -d specify ip or domain to the target host." - echo " -k specify the full path to the ssh_key you'll use for remote access to the" - echo " target during install process." - echo " Example: -k /home/${target_user}/.ssh/my_ssh_key" echo echo "OPTIONS:" echo " -u specify target_user with sudo access. nix-config will be cloned to their home." @@ -105,10 +101,6 @@ while [[ $# -gt 0 ]]; do shift target_user=$1 ;; - -k) - shift - ssh_key=$1 - ;; --port) shift ssh_port=$1 @@ -125,7 +117,7 @@ while [[ $# -gt 0 ]]; do shift done -if [ -z "$target_hostname" ] || [ -z "$target_destination" ] || [ -z "$ssh_key" ]; then +if [ -z "$target_hostname" ] || [ -z "$target_destination" ]; then echo "ERROR: -n, -d, and -k are all required" echo help_and_exit