-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7fb00d
commit bd0fa25
Showing
26 changed files
with
206 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
[submodule "dotbot"] | ||
path = .dotbot | ||
path = meta/.dotbot | ||
url = [email protected]:kurtmckee/pr-dotbot.git | ||
branch = resolve-dispatcher-plugins-failure-issue-339 | ||
[submodule "dotbot_plugins/dotbot-apt"] | ||
path = .dotbot_plugins/dotbot-apt | ||
path = meta/.dotbot_plugins/dotbot-apt | ||
url = [email protected]:bryant1410/dotbot-apt | ||
branch = master | ||
[submodule "dotbot_plugins/dotbot-sudo"] | ||
path = .dotbot_plugins/dotbot-sudo | ||
path = meta/.dotbot_plugins/dotbot-sudo | ||
url = [email protected]:DrDynamic/dotbot-sudo.git | ||
branch = master | ||
[submodule "dotbot_plugins/dotbot-snap"] | ||
path = .dotbot_plugins/dotbot-snap | ||
path = meta/.dotbot_plugins/dotbot-snap | ||
url = [email protected]:DrDynamic/dotbot-snap.git | ||
branch = master | ||
[submodule "dotbot_plugins/dotbot-git"] | ||
path = .dotbot_plugins/dotbot-git | ||
path = meta/.dotbot_plugins/dotbot-git | ||
url = [email protected]:DrDynamic/dotbot-git.git | ||
branch = master | ||
[submodule "dotbot_plugins/dotbot-if"] | ||
path = .dotbot_plugins/dotbot-if | ||
path = meta/.dotbot_plugins/dotbot-if | ||
url = [email protected]:smergler/dotbot-if.git | ||
branch = main |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
formatter: | ||
type: basic | ||
include_document_start: true | ||
include_document_start: false | ||
retain_line_breaks_single: true | ||
eof_newline: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
BASE_CONFIG="base" | ||
CONFIG_SUFFIX=".yaml" | ||
|
||
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
META_DIR="${BASE_DIR}/meta" | ||
CONFIG_DIR="${META_DIR}/configs" | ||
PROFILES_DIR="${META_DIR}/profiles" | ||
|
||
DOTBOT_DIR="${META_DIR}/.dotbot" | ||
DOTBOT_BIN="bin/dotbot" | ||
DOTBOT_PLUGIN_DIR="${META_DIR}/.dotbot_plugins" | ||
|
||
|
||
cd "${BASE_DIR}" | ||
git -C "${BASE_DIR}" submodule sync --quiet --recursive | ||
git submodule update --init --recursive "${BASE_DIR}" | ||
|
||
|
||
while IFS= read -r config; do | ||
CONFIGS+=" ${config}" | ||
done < "${PROFILES_DIR}/$1" | ||
|
||
shift | ||
|
||
for config in ${CONFIGS} ${@}; do | ||
echo -e "\nConfigure $config" | ||
# create temporary file | ||
configFile="$(mktemp)" | ||
suffix="-sudo" | ||
echo -e "$(<"${META_DIR}/${BASE_CONFIG}${CONFIG_SUFFIX}")\n$(<"${CONFIG_DIR}/${config%"$suffix"}${CONFIG_SUFFIX}")" > "$configFile" | ||
|
||
cmd=("${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" -c "$configFile" \ | ||
--plugin-dir "${DOTBOT_PLUGIN_DIR}/dotbot-apt" \ | ||
--plugin-dir "${DOTBOT_PLUGIN_DIR}/dotbot-git" \ | ||
--plugin-dir "${DOTBOT_PLUGIN_DIR}/dotbot-snap" \ | ||
--plugin-dir "${DOTBOT_PLUGIN_DIR}/dotbot-if" \ | ||
) | ||
|
||
if [[ $config == *"sudo"* ]]; then | ||
cmd=(sudo "${cmd[@]}") | ||
fi | ||
|
||
"${cmd[@]}" | ||
rm -f "$configFile" | ||
done | ||
|
||
cd "${BASE_DIR}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
BASE_CONFIG="base" | ||
CONFIG_SUFFIX=".yaml" | ||
|
||
META_DIR="meta" | ||
CONFIG_DIR="configs" | ||
PROFILES_DIR="profiles" | ||
|
||
DOTBOT_DIR="dotbot" | ||
DOTBOT_BIN="bin/dotbot" | ||
|
||
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
|
||
cd "${BASE_DIR}" | ||
git submodule update --init --recursive --remote | ||
|
||
for config in ${@}; do | ||
# create temporary file | ||
configFile="$(mktemp)" | ||
suffix="-sudo" | ||
echo -e "$(<"${BASE_DIR}/${META_DIR}/${BASE_CONFIG}${CONFIG_SUFFIX}")\n$(<"${BASE_DIR}/${META_DIR}/${CONFIG_DIR}/${config%"$suffix"}${CONFIG_SUFFIX}")" > "$configFile" | ||
|
||
cmd=("${BASE_DIR}/${META_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" -c "$configFile") | ||
|
||
if [[ $config == *"sudo"* ]]; then | ||
cmd=(sudo "${cmd[@]}") | ||
fi | ||
|
||
"${cmd[@]}" | ||
rm -f "$configFile" | ||
done | ||
|
||
cd "${BASE_DIR}" |
Submodule .dotbot
updated
from 000000 to 254977
Submodule dotbot-if
updated
from 000000 to 624c76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
- defaults: | ||
link: | ||
create: true | ||
relink: true | ||
force: true | ||
shell: | ||
stdin: true | ||
stdout: true | ||
stderr: true | ||
|
||
- clean: ['~', '~/.config'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
- apt: | ||
- curl | ||
- zsh | ||
- tmux | ||
- build-essential | ||
- xclip | ||
- cmake | ||
- gitk | ||
- libfuse2 | ||
- pre-commit | ||
- black | ||
- clang | ||
- clang-format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- link: | ||
~/.bashrc: bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# change to zsh for the user running the script | ||
- shell: | ||
- chsh -s $(which zsh) "$SUDO_USER" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# default git config | ||
- shell: | ||
- git config --global core.editor "nvim" | ||
- git config --global user.name "Lucien Morey" | ||
- git config --global init.defaultBranch main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- shell: | ||
- wget https://go.dev/dl/go1.23.1.linux-amd64.tar.gz | ||
- rm -rf /usr/local/go && tar -C /usr/local -xzf go1.23.1.linux-amd64.tar.gz | ||
- rm -f go1.23.1.linux-amd64.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This has path set explicitly temporarily in case this is running as part of the first time execution and the path hasnt updated to include go | ||
- shell: | ||
- PATH=$PATH:/usr/local/go/bin go install github.com/google/yamlfmt/cmd/yamlfmt@latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- link: | ||
~/.config/nvim: | ||
create: true | ||
path: nvim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- shell: | ||
- wget https://github.com/neovim/neovim/releases/latest/download/nvim.appimage | ||
- chmod u+x nvim.appimage | ||
|
||
- create: | ||
- /opt/nvim | ||
|
||
- shell: | ||
- mv nvim.appimage /opt/nvim/nvim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- snap: | ||
- spotify: | ||
- code: | ||
classic: true | ||
- slack: | ||
- discord: | ||
- bitwarden: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- link: | ||
~/.tmux.conf: tmux.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# update ubuntu dock with default preferred shortcuts | ||
- shell: | ||
- gsettings set org.gnome.shell favorite-apps "['firefox_firefox.desktop', 'thunderbird_thunderbird.desktop', 'org.gnome.Nautilus.desktop', 'code_code.desktop', 'org.gnome.Terminal.desktop', 'spotify_spotify.desktop', 'bitwarden_bitwarden.desktop']" | ||
- dconf load /org/gnome/terminal/legacy/profiles:/ < gnome-terminal-profiles.dconf | ||
- gsettings set org.gnome.desktop.background picture-uri "file://$(realpath ".")/wallpaper.jpg" | ||
- gsettings set org.gnome.desktop.background picture-uri-dark "file://$(realpath ".")/wallpaper.jpg" | ||
- gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" | ||
- gsettings set org.gnome.desktop.interface icon-theme "Yaru-viridian" | ||
- gsettings set org.gnome.desktop.interface gtk-theme "Yaru-viridian-dark" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# install oh my zsh. this will not change the shell automatically (that is done later to save time on password injection) | ||
- if: | ||
cond: if [ -z $ZSH ] && [ ! -d /home/$USER/.oh-my-zsh ]; then exit 0; else exit 1;fi | ||
met: | ||
- shell: | ||
- sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended | ||
unmet: | ||
- shell: | ||
- echo ZSH already seems to be installed. skipping | ||
|
||
# install auto suggestions for oh my zsh | ||
- git: | ||
'~/.oh-my-zsh/custom/plugins/zsh-autosuggestions': | ||
url: 'https://github.com/zsh-users/zsh-autosuggestions' | ||
description: 'oh my zsh - autosuggestions' | ||
'~/.oh-my-zsh/custom/themes/powerlevel10k': | ||
url: 'https://github.com/romkatv/powerlevel10k.git' | ||
description: 'oh my zsh - powerlevel10k' | ||
'~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting': | ||
url: 'https://github.com/romkatv/zsh-syntax-highlighting.git' | ||
description: 'oh my zsh - syntax highlighting' | ||
|
||
- link: | ||
~/.zshrc: zshrc | ||
~/.p10k.zsh: p10k.zsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apt-install-sudo | ||
snap-install-sudo | ||
go-core-install-sudo | ||
nvim-install-sudo | ||
change-shell-zsh-sudo | ||
zsh-config | ||
bash-config | ||
tmux-config | ||
go-module-install | ||
nvim-config | ||
git-config | ||
ui-config |