diff --git a/home/dot_justfile.tmpl b/home/dot_justfile.tmpl new file mode 100644 index 00000000..46b5ae76 --- /dev/null +++ b/home/dot_justfile.tmpl @@ -0,0 +1,17 @@ +{{- if lstat "/usr/share/ublue-os/justfile" -}} +!include /usr/share/ublue-os/justfile + +{{ end -}} +# update system +update: +{{- if eq .chezmoi.osRelease.variant "Silverblue" }} + @echo '=> Updating rpm-ostree...' + rpm-ostree update + @echo '=> Updating flatpaks...' + flatpak update -y + @echo "=> Assembling and replacing distroboxes from ${HOME}/.config/distrobox/assemble.ini..." + distrobox assemble create --replace --file "${HOME}/.config/distrobox/assemble.ini" + @"${HOME}/.config/distrobox/exports.sh" +{{- else }} + @echo "=> No update available for {{ .chezmoi.os }}" +{{- end }}