1
0
forked from extern/nix-config
donovanglover-nix-config/.archlinux/bootstrap.sh
Donovan Glover a42bf287a4
Remove yay stuff from bootstrap script
Note that I need to update the script later or simply provide a series
of instructions so everything isn't dependant on one script.

In the past it was nice to install Arch Linux with minimal if any
console intervention, but the practicality of this is questionable
since you only have to install Arch once. A more specialized script
could be useful for mass installations, although in this case I assume
one would create such a script on-the-spot.
2021-05-14 16:00:29 -04:00

48 lines
948 B
Bash
Executable File

#!/bin/sh
# End the script on any errors
set -e
# Change the working directory to this one
cd "$(dirname "$0")"
# Get administrative privileges
sudo -v
# Keep pinging sudo until this script finishes
# Source: https://gist.github.com/cowboy/3118588
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Refresh GPG keys before installing packages
make refresh-keys
# Install PKGBUILDs
make package=tari-core
make package=color-scripts
make package=xeventbind
# Install and set the default toolchain for rust
make rust
# Additional settings
make fontconfig
make yarnconfig
# Enable the lightweight X11 display manager
systemctl enable lxdm.service
# Revoke privileges
sudo -K
# Install dotfiles
make -C ..
# Change the color scheme to a sane default
wal --theme base16-tomorrow-night
# Create the user's home directories
xdg-user-dirs-update
# Run vim for the first time (i.e. install plugins and exit)
nvim