From d0e1214f2361dc7da79491ce273a50d40de59bc0 Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Fri, 20 Jun 2025 17:00:15 -0400 Subject: [PATCH] Added latest chezmoi version at image build time for complete package at install without internet --- files/scripts/setupchezmoiskel.sh | 10 ++++++++++ recipes/components/chezmoi-module.yml | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 files/scripts/setupchezmoiskel.sh diff --git a/files/scripts/setupchezmoiskel.sh b/files/scripts/setupchezmoiskel.sh new file mode 100644 index 0000000..4f59da1 --- /dev/null +++ b/files/scripts/setupchezmoiskel.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Tell build process to exit if there are any errors. +set -oue pipefail + +git clone https://git.hydrosaber.com/eriq12/dotfiles /etc/skel/.local/share/chezmoi + +cp /etc/skel/.local/share/chezmoi/dot_bashrc /etc/skel/.bashrc +cp /etc/skel/.local/share/chezmoi/dot_zshrc /etc/skel/.zshrc +cp -r /etc/skel/.local/share/chezmoi/dot_config /etc/skel/.config \ No newline at end of file diff --git a/recipes/components/chezmoi-module.yml b/recipes/components/chezmoi-module.yml index f5a8d3e..818b374 100644 --- a/recipes/components/chezmoi-module.yml +++ b/recipes/components/chezmoi-module.yml @@ -1,3 +1,7 @@ modules: - type: chezmoi - repository: "https://git.hydrosaber.com/eriq12/dotfiles" \ No newline at end of file + repository: "https://git.hydrosaber.com/eriq12/dotfiles" + + - type: script + scripts: + - setupchezmoiskel.sh \ No newline at end of file