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

25 lines
1023 B
Bash
Executable File

#!/usr/bin/env bash
cd "$(dirname "$0")"
export base="$(pwd)"
source ./scriptdata/environment-variables
source ./scriptdata/functions
source ./scriptdata/installers
source ./scriptdata/options
prevent_sudo_or_root
set -e
#####################################################################################
# 0. Before we start
source ./scriptdata/install-greeting
#####################################################################################
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
#####################################################################################
printf "${COLOR_CYAN}[$0]: 2. Setup for user groups/services etc\n${COLOR_RESET}"
source ./scriptdata/install-setups
#####################################################################################
printf "${COLOR_CYAN}[$0]: 3. Copying + Configuring\n${COLOR_RESET}"
source ./scriptdata/install-files