Fix small issues

This commit is contained in:
${GIT_USER}
2025-08-27 14:44:46 +02:00
parent 3071595a13
commit 366896a13e
3 changed files with 10 additions and 10 deletions

View File

@@ -1,14 +1,7 @@
#!/usr/bin/env bash
disable_unwanted_extensions() {
# Disable default Ubuntu gnome extensions
sudo -u ${USERNAME} gnome-extensions disable ding@rastersoft.com # Desktop Icons
}
WHEEL_GROUP="sudo"
disable_unwanted_extensions
# Enable docker IPv4 forwarding, to allow LXD to work along it :)
echo "net.ipv4.conf.all.forwarding=1" > /etc/sysctl.d/99-forwarding.conf
sysctl net.ipv4.conf.all.forwarding=1 >/dev/null 2>&1

View File

@@ -207,6 +207,11 @@ extra_init() {
fi
}
extra_finish() {
echo -ne ""
disable_unwanted_extensions() {
# Disable default Ubuntu gnome extensions
sudo -u ${USERNAME} gnome-extensions disable ding@rastersoft.com # Desktop Icons
}
extra_finish() {
disable_unwanted_extensions
}

View File

@@ -6,13 +6,15 @@ install_dotfile_ifnot() {
}
echo "Installing dotfiles..."
# cp -r --update=none ${script_dir}/dotfiles/. /home/${USERNAME}/
sudo -u ${USERNAME} mkdir -p /home/${USERNAME}/.config/git
cat ${script_dir}/dotfiles/.config/git/config | envsubst '$GIT_USER $EMAIL' >/home/${USERNAME}/.config/git/config
chown ${USERNAME}:${USERNAME} /home/${USERNAME}/.config/git/config
# Install bashrc if not mymachine-installed
if ! [[ "$(head -n 1 /home/${USERNAME}/.bashrc)" = "# mymachine" ]]; then
sudo -u ${USERNAME} cp "${script_dir}/dotfiles/.bashrc" "/home/${USERNAME}/.bashrc"
fi
install_dotfile_ifnot .config/prompt.sh
# Install code settings depending on which code is installed
CODE_NAME="Code - OSS"