From 4e928c2306992fa71be80917ff87e81f49c7ca0d Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Wed, 5 Feb 2025 23:18:10 +0100 Subject: [PATCH] Extend automatic dotfiles setup --- .bin/setup | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.bin/setup b/.bin/setup index 461becd..27111a3 100755 --- a/.bin/setup +++ b/.bin/setup @@ -163,6 +163,21 @@ configure_gnome() { announce "Configuring Gnome"; setup-gnome } +setup_firewall() { + announce "Configuring firewalld" + install firewalld + sudo systemctl enable --now firewalld +} + +setup_docker() { + announce "Setting up Docker" + install docker + install docker-compose + sudo systemctl enable --now docker.socket + sudo usermod -aG docker "$USER" + echo "User added to docker group, please restart your session" +} + announce() { echo " " echo "[dots] $1" @@ -184,3 +199,5 @@ confirm "Setup keyboard? " setup_keyboard if pacman -Qi "gdm" &> /dev/null; then confirm "Configure Gnome? " configure_gnome fi +confirm "Setup firewall? " setup_firewall +confirm "Setup Docker? " setup_docker