Skip to content

Commit

Permalink
remove tailscale + install podman/talosctl/uv
Browse files Browse the repository at this point in the history
  • Loading branch information
gjpin committed Dec 27, 2024
1 parent 37e8101 commit ab4d26e
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 70 deletions.
3 changes: 2 additions & 1 deletion configs/vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"editor.background": "#181818"
}
},
"git.useIntegratedAskPass": false
"git.useIntegratedAskPass": false,
"chat.commandCenter.enabled": false
}
10 changes: 0 additions & 10 deletions flatpak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ if [[ "$XDG_CURRENT_DESKTOP" == *"GNOME"* ]]; then
# Install Flatseal
flatpak install -y flathub com.github.tchx84.Flatseal

# Install Evince
flatpak install -y flathub org.gnome.Evince
curl https://raw.githubusercontent.com/gjpin/arch-linux/main/configs/flatpak/org.gnome.Evince -o ${HOME}/.local/share/flatpak/overrides/org.gnome.Evince
xdg-mime default org.gnome.Evince.desktop application/pdf

# Install Gaphor
flatpak install -y flathub org.gaphor.Gaphor
curl https://raw.githubusercontent.com/gjpin/arch-linux/main/configs/flatpak/org.gaphor.Gaphor -o ${HOME}/.local/share/flatpak/overrides/org.gaphor.Gaphor
Expand All @@ -67,11 +62,6 @@ if [[ "$XDG_CURRENT_DESKTOP" == *"GNOME"* ]]; then
# Install Eyedropper
flatpak install -y flathub com.github.finefindus.eyedropper
curl https://raw.githubusercontent.com/gjpin/arch-linux/main/configs/flatpak/com.github.finefindus.eyedropper -o ${HOME}/.local/share/flatpak/overrides/com.github.finefindus.eyedropper
elif [[ "$XDG_CURRENT_DESKTOP" == *"KDE"* ]]; then
# Install Okular
flatpak install -y flathub org.kde.okular
curl https://raw.githubusercontent.com/gjpin/arch-linux/main/configs/flatpak/org.kde.okular -o ${HOME}/.local/share/flatpak/overrides/org.kde.okular
xdg-mime default org.kde.okular.desktop application/pdf
fi

# Install applications
Expand Down
1 change: 1 addition & 0 deletions gnome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

pacman -S --noconfirm \
baobab \
evince \
file-roller \
gnome-backgrounds \
gnome-calculator \
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fi
# GPU vendor
if lspci | grep "VGA" | grep "Intel" > /dev/null; then
export GPU_PACKAGES="vulkan-intel intel-media-driver intel-gpu-tools"
export MKINITCPIO_MODULES=" i915"
export MKINITCPIO_MODULES=" i915 enable_guc=2 enable_fbc=1"
export LIBVA_ENV_VAR="LIBVA_DRIVER_NAME=iHD"
elif lspci | grep "VGA" | grep "AMD" > /dev/null; then
export GPU_PACKAGES="vulkan-radeon libva-mesa-driver radeontop mesa-vdpau"
Expand Down
49 changes: 23 additions & 26 deletions misc.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
#!/usr/bin/bash

################################################
##### Tailscale
################################################

# References:
# https://wiki.archlinux.org/title/Tailscale
# https://tailscale.com/download/linux/arch

# Install Tailscale
pacman -S --noconfirm tailscale

# Enable Tailscale service
systemctl enable --now tailscaled.service

# Set Tailscale's network zone
firewall-offline-cmd --zone=home --add-interface=tailscale0

################################################
##### Sunshine (native - prebuilt)
################################################
Expand Down Expand Up @@ -743,37 +760,17 @@ EOF
ln -s /home/${NEW_USER}/.config/electron-flags.conf /home/${NEW_USER}/.config/code-flags.conf

################################################
##### Podman
##### Docker
################################################

# References:
# https://wiki.archlinux.org/title/Podman
# https://wiki.archlinux.org/title/Buildah
# https://github.com/containers/podman/blob/main/docs/tutorials/rootless_tutorial.md
# https://wiki.archlinux.org/title/docker

# Install Podman and dependencies
pacman -S --noconfirm podman passt netavark aardvark-dns
# Install Docker and plugins
pacman -S --noconfirm docker docker-compose docker-buildx

# Install Buildah
pacman -S --noconfirm buildah

# Enable unprivileged ping
echo 'net.ipv4.ping_group_range=0 165535' > /etc/sysctl.d/99-unprivileged-ping.conf

# Create docker/podman alias
tee /home/${NEW_USER}/.zshrc.d/podman << EOF
alias docker=podman
EOF

# Re-enable unqualified search registries
tee -a /etc/containers/registries.conf.d/10-unqualified-search-registries.conf << EOF
unqualified-search-registries = ['docker.io']
EOF

tee -a /etc/containers/registries.conf.d/01-registries.conf << EOF
[[registry]]
location = "docker.io"
EOF
# Enable Docker socket
systemctl enable docker.socket

################################################
##### Gnome - Qt theming
Expand Down
4 changes: 2 additions & 2 deletions plasma.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ pacman -S --noconfirm \
kompare \
konsole \
kwalletmanager \
okular \
partitionmanager \
plasma-systemmonitor \
spectacle
Expand Down Expand Up @@ -243,5 +244,4 @@ sudo -u ${NEW_USER} kwriteconfig6 --file klaunchrc --group BusyCursorSettings --
sudo -u ${NEW_USER} kwriteconfig6 --file klaunchrc --group FeedbackStyle --key "BusyCursor" --type bool false

# Disable cursor shake
sudo -u ${NEW_USER} kwriteconfig6 --file kwinrc --group Plugins --key "shakecursorEnabled" --type bool false

sudo -u ${NEW_USER} kwriteconfig6 --file kwinrc --group Plugins --key "shakecursorEnabled" --type bool false
63 changes: 33 additions & 30 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -355,23 +355,6 @@ pacman -S --noconfirm bind
# Install nftables
pacman -S --noconfirm iptables-nft --ask 4

################################################
##### Tailscale
################################################

# References:
# https://wiki.archlinux.org/title/Tailscale
# https://tailscale.com/download/linux/arch

# Install Tailscale
pacman -S --noconfirm tailscale

# Enable Tailscale service
systemctl enable --now tailscaled.service

# Set Tailscale's network zone
firewall-offline-cmd --zone=home --add-interface=tailscale0

################################################
##### initramfs
################################################
Expand Down Expand Up @@ -674,17 +657,37 @@ chown -R ${NEW_USER}:${NEW_USER} /home/${NEW_USER}
sudo -u ${NEW_USER} systemctl --user enable syncthing.service

################################################
##### Docker
##### Podman
################################################

# References:
# https://wiki.archlinux.org/title/docker
# https://wiki.archlinux.org/title/Podman
# https://wiki.archlinux.org/title/Buildah
# https://github.com/containers/podman/blob/main/docs/tutorials/rootless_tutorial.md

# Install Docker and plugins
pacman -S --noconfirm docker docker-compose docker-buildx
# Install Podman and dependencies
pacman -S --noconfirm podman passt netavark aardvark-dns

# Enable Docker socket
systemctl enable docker.socket
# Install Buildah
pacman -S --noconfirm buildah

# Enable unprivileged ping
echo 'net.ipv4.ping_group_range=0 165535' > /etc/sysctl.d/99-unprivileged-ping.conf

# Create docker/podman alias
tee /home/${NEW_USER}/.zshrc.d/podman << EOF
alias docker=podman
EOF

# Re-enable unqualified search registries
tee -a /etc/containers/registries.conf.d/10-unqualified-search-registries.conf << EOF
unqualified-search-registries = ['docker.io']
EOF

tee -a /etc/containers/registries.conf.d/01-registries.conf << EOF
[[registry]]
location = "docker.io"
EOF

################################################
##### Virtualization
Expand Down Expand Up @@ -730,7 +733,7 @@ tee /home/${NEW_USER}/.minikube/config/config.json << 'EOF'
EOF

# Install k8s applications
pacman -S --noconfirm kubectl helm k9s kubectx cilium-cli
pacman -S --noconfirm kubectl helm k9s kubectx cilium-cli talosctl

# Kubernetes aliases and autocompletion
tee /home/${NEW_USER}/.zshrc.d/kubernetes << 'EOF'
Expand Down Expand Up @@ -770,13 +773,13 @@ tee /home/${NEW_USER}/.zshrc.d/npm << 'EOF'
export PATH=$HOME/.devtools/npm-global/bin:$PATH
EOF

# Install Python and create alias for python venv
pacman -S --noconfirm python
mkdir -p /home/${NEW_USER}/.devtools/python
chown -R ${NEW_USER}:${NEW_USER} /home/${NEW_USER}/.devtools/python
sudo -u ${NEW_USER} python -m venv /home/${NEW_USER}/.devtools/python/dev
# Install Python uv
pacman -S --noconfirm uv

tee /home/${NEW_USER}/.zshrc.d/python << 'EOF'
alias pydev="source ${HOME}/.devtools/python/dev/bin/activate"
# uv shell autocompletion
eval "$(uv generate-shell-completion zsh)"
eval "$(uvx --generate-shell-completion zsh)"
EOF

# Install Go
Expand Down

0 comments on commit ab4d26e

Please sign in to comment.