Skip to content

Commit

Permalink
zsh + add in docker again
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ngr31 committed Feb 1, 2024
1 parent 4866703 commit 1e86bf4
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 22 deletions.
6 changes: 5 additions & 1 deletion config/common_modules/rpm-ostree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ install:
- p7zip
- p7zip-plugins
- podman-compose
- podman-docker
- podman-plugins
- podman-tui
- podmansh
- docker-ce
- docker-ce-cli
- docker-buildx-plugin
- docker-compose-plugin
- containerd.io
- playerctl
- nautilus-gsconnect
- python3-pip
Expand Down
6 changes: 6 additions & 0 deletions config/files/etc/yum.repos.d/docker-ce.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://download.docker.com/linux/fedora/$releasever/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/fedora/gpg
51 changes: 30 additions & 21 deletions config/files/usr/etc/skel/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -55,33 +55,42 @@ if [ -n "$CONTAINER_ID" ]; then
source "$XDG_CONFIG_HOME/.zshrc"
fi

db_glob_pattern="$XDG_CONFIG_HOME/config.d/*.zsh"

if stat -t "$db_glob_pattern" >/dev/null 2>&1; then
for conf in "$db_glob_pattern"; do
source "${conf}"
done
if [ -d "$XDG_CONFIG_HOME/config.d/" ]; then
files=("$XDG_CONFIG_HOME/config.d/"*.zsh)
if [ ${#files[@]} -gt 0 ]; then
for conf in "${files[@]}"; do
source "$conf"
done
unset conf
fi
unset files
fi
else
# localhost
source "$HOME/.config/contexts/localhost/.zshrc"

localhost_glob_pattern="$XDG_CONFIG_HOME/config.d/*.zsh"
if [ -f "$HOME/.config/contexts/localhost/.zshrc" ]; then
source "$HOME/.config/contexts/localhost/.zshrc"
fi

if stat -t "$localhost_glob_pattern" >/dev/null 2>&1; then
for conf in "$localhost_glob_pattern"; do
source "${conf}"
done
unset conf
if [ -d "$HOME/.config/contexts/localhost/config.d/" ]; then
files=("$HOME/.config/contexts/localhost/config.d/"*.zsh)
if [ ${#files[@]} -gt 0 ]; then
for conf in "${files[@]}"; do
source "$conf"
done
unset conf
fi
unset files
fi
fi

# Load seperated config files
global_glob_pattern="$XDG_CONFIG_HOME/config.d/*.zsh"

if stat -t "$global_glob_pattern" >/dev/null 2>&1; then
for conf in "$global_glob_pattern"; do
source "${conf}"
done
unset conf
if [ -d "$HOME/.config/contexts/config.d/" ]; then
files=("$HOME/.config/contexts/config.d/"*.zsh)
if [ ${#files[@]} -gt 0 ]; then
for conf in "${files[@]}"; do
source "$conf"
done
unset conf
fi
unset files
fi
1 change: 1 addition & 0 deletions config/files/usr/lib/sysctl.d/docker-ce.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
net.ipv4.ip_forward = 1

0 comments on commit 1e86bf4

Please sign in to comment.