Files
illogical-impulse/install.sh
T
2025-10-01 21:49:46 +08:00

25 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
cd "$(dirname "$0")"
export base="$(pwd)"
source ./scriptdata/environment-variables.sh
source ./scriptdata/functions.sh
source ./scriptdata/installers.sh
source ./scriptdata/options.sh
prevent_sudo_or_root
set -e
#####################################################################################
# 0. Before we start
source ./scriptdata/install-greeting.sh
#####################################################################################
printf "${COLOR_CYAN}[$0]: 1. Install dependencies\n${COLOR_RESET}"
# TODO: if `--via-nix` is specified, source `install-deps-nix` instead.
source ./scriptdata/install-deps-arch.sh
#####################################################################################
printf "${COLOR_CYAN}[$0]: 2. Setup for user groups/services etc\n${COLOR_RESET}"
source ./scriptdata/install-setups.sh
#####################################################################################
printf "${COLOR_CYAN}[$0]: 3. Copying + Configuring\n${COLOR_RESET}"
source ./scriptdata/install-files.sh