-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.steamos.sh
executable file
·71 lines (54 loc) · 1.96 KB
/
index.steamos.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# My needs for my steamdeck are quite different from MacOS
# and ChromeOS, so this may be quite radically different.
#
# I also want to avoid making the root filesystem writable, so
# I rely heavily on flatpak and brew installed to the home folder
# to work.
set -e
trap 'ctrlC' INT
trap 'theEnd $?' EXIT
ctrlC() {
./print.sh "You canceled beleyenv! This may leave you in a weird state.\n\
Since belyenv is idempotent, you can most likely just re-run beleyenv"
exit 1
}
theEnd() {
if [[ "$1" != "0" ]]; then
./print.sh 'Beleyenv install failed!'
else
./print.sh 'SUCCESS! BELEYENV HAS BEEN FULLY INSTALLED!'
fi
}
./configScripts/setup-ssh-keys.sh
flatpak install -y flathub com.google.Chrome org.videolan.VLC
flatpak install -y flathub io.github.streetpea.Chiaki4deck
# Flatpak Chrome home directory access
flatpak override --user --filesystem=home com.google.Chrome
# Flatpak Chrome Controller Access
flatpak --user override --filesystem=/run/udev:ro com.google.Chrome
# Brew should be installed by bootstrap.sh,
# so we just update the local repo and upgrade packages.
# Noticed issues on steamdeck. Not sure what's up though. Defaults seemed sane.
# To investigate on a later day.
ulimit -n 6000
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew update
brew upgrade
brew install asdf shellcheck fd thefuck jq fzf bat yq lsd lazygit git-delta gocryptfs
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf install nodejs latest
asdf global nodejs latest
# shellcheck disable=SC1091
. "$(brew --prefix asdf)/libexec/asdf.sh"
npm install --global yarn
# Decky Plugin loader
curl -L https://github.com/SteamDeckHomebrew/decky-installer/releases/latest/download/install_release.sh | sh
./installScripts/install-zsh.sh
./installScripts/install-fonts.sh
./installScripts/install-yarn-pkgs.sh
# Enable SSHD
sudo systemctl enable sshd
sudo systemctl start sshd
# User configuration
./configScripts/link-configs.sh