forked from extern/nix-config
archlinux: Add bootstrap.sh
This *should* work, although I haven't tested it yet.
This commit is contained in:
parent
6a81d13297
commit
948359bdef
46
.archlinux/bootstrap.sh
Executable file
46
.archlinux/bootstrap.sh
Executable file
@ -0,0 +1,46 @@
|
||||
#!/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 &
|
||||
|
||||
# Install dependencies
|
||||
sudo -n pacman -S stow
|
||||
|
||||
# Install PKGBUILDs
|
||||
make package=tari-core
|
||||
make package=bspwm-round-corners-git
|
||||
make package=color-scripts
|
||||
make package=xeventbind
|
||||
|
||||
# Install aur dependencies
|
||||
make aur package=yay
|
||||
make aur package=rtv
|
||||
make aur package=polybar
|
||||
make aur package=shotgun
|
||||
make aur package=ranger-git
|
||||
|
||||
# Additional settings
|
||||
make fontconfig
|
||||
make yarnconfig
|
||||
|
||||
# Revoke privileges
|
||||
sudo -K
|
||||
|
||||
# Install dotfiles
|
||||
make -C ..
|
||||
|
||||
# Change the color scheme to a sane default
|
||||
wal --theme base16-tomorrow-night
|
||||
|
||||
# Run vim for the first time (i.e. install plugins and exit)
|
||||
nvim
|
Loading…
Reference in New Issue
Block a user