Browse Source

Automated build

main
build script 1 month ago
committed by hoschi-it
parent
commit
2d0d4141d0
  1. 14
      distribution/bootstrap-nixos.sh.txt

14
distribution/bootstrap-nixos.sh.txt

@ -16,24 +16,18 @@ main() {
local GIT_SERVER='https://app.hoschi-it.de/gitea'
local GIT_USER='janina'
local DOTFILES_REPO="NixOS-config"
local DOTFILES_DOWNLOAD_URL=${GIT_SERVER}/${GIT_USER}/${DOTFILES_REPO}/archive/main.tar.gz
local DOTFILES_DOWNLOAD_URL=${GIT_SERVER}/${GIT_USER}/${DOTFILES_REPO}.git
local TEMPORARY_ARCHIVE_FILE="/tmp/dotfiles.tar.gz"
mkdir -p $INSTALL_PATH
cd $INSTALL_PATH
curl \
--disable \
--location \
--max-time 60 \
--output "${TEMPORARY_ARCHIVE_FILE}" "${DOTFILES_DOWNLOAD_URL}"
tar -xzvf "${TEMPORARY_ARCHIVE_FILE}"
rm -f "${TEMPORARY_ARCHIVE_FILE}"
nix-shell -p 'git' \
--command "git clone https://$DOTFILES_DOWNLOAD_URL ${DOTFILES_REPO,,}"
set +o xtrace # turn of verbosity
echo "Placed $DOTFILES_REPO at ${INSTALL_PATH}."
echo "Placed $DOTFILES_REPO at $(pwd)/${DOTFILES_REPO,,}"
echo "Have fun!"
}

Loading…
Cancel
Save