From 5cb932dbd2767d07bea976785bebe451a0dd2ea1 Mon Sep 17 00:00:00 2001 From: Josh Mize Date: Fri, 27 Feb 2026 08:54:17 -0600 Subject: [PATCH 1/2] Ghostty: unfocused-split-opacity=1; unset background-opacity --- .config/ghostty/config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/ghostty/config b/.config/ghostty/config index 29f7da0..33e36ab 100644 --- a/.config/ghostty/config +++ b/.config/ghostty/config @@ -1,4 +1,5 @@ macos-non-native-fullscreen = true -background-opacity = 0.8 +# background-opacity = 0.8 +unfocused-split-opacity = 1 keybind = global:cmd+ctrl+t=toggle_quick_terminal term = xterm-256color \ No newline at end of file From 769dcf99b62c0105598a1f927e008dd64b52dfb6 Mon Sep 17 00:00:00 2001 From: Josh Mize Date: Sat, 7 Mar 2026 20:08:45 -0600 Subject: [PATCH 2/2] Fix sudo in gcloud-slim --- .config/ghostty/config | 2 +- .docker/gcloud-slim | 15 +++++++++------ .lima/.org | 17 +++++++++++++++-- .org | 14 +++++++++++--- 4 files changed, 36 insertions(+), 12 deletions(-) diff --git a/.config/ghostty/config b/.config/ghostty/config index 33e36ab..8a17bf3 100644 --- a/.config/ghostty/config +++ b/.config/ghostty/config @@ -1,5 +1,5 @@ macos-non-native-fullscreen = true # background-opacity = 0.8 unfocused-split-opacity = 1 +term = xterm-256color keybind = global:cmd+ctrl+t=toggle_quick_terminal -term = xterm-256color \ No newline at end of file diff --git a/.docker/gcloud-slim b/.docker/gcloud-slim index 69a807d..5ff8026 100644 --- a/.docker/gcloud-slim +++ b/.docker/gcloud-slim @@ -3,6 +3,8 @@ ENV DEBIAN_FRONTEND=noninteractive ARG SOPS_VERSION="v3.8.1" ARG SUPABASE_VERSION="2.26.8" ARG USERNAME=jgmize +ARG TARGETARCH +SHELL ["/bin/bash", "-c"] RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash && \ apt-get install -y --no-install-recommends \ build-essential ca-certificates curl emacs-nox git gpg gpg-agent htop jq \ @@ -10,18 +12,19 @@ RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash && \ python3-importmagic ripgrep software-properties-common sudo tmate tmux tree \ tzdata unzip && apt-get clean -y && \ rm -rf /var/cache/debconf/* /var/lib/apt/lists/* /tmp/* /var/tmp/* -RUN curl -LO https://github.com/supabase/cli/releases/download/v${SUPABASE_VERSION}/supabase_${SUPABASE_VERSION}_linux_amd64.deb && \ - dpkg -i supabase_${SUPABASE_VERSION}_linux_amd64.deb +RUN curl -LO https://github.com/supabase/cli/releases/download/v${SUPABASE_VERSION}/supabase_${SUPABASE_VERSION}_linux_${TARGETARCH}.deb && \ + dpkg -i supabase_${SUPABASE_VERSION}_linux_${TARGETARCH}.deb RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 && \ chmod +x get_helm.sh && ./get_helm.sh -RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \ +RUN declare -A arch=(["amd64"]="x86_64" ["arm64"]="aarch64") && \ + curl "https://awscli.amazonaws.com/awscli-exe-linux-${arch[$TARGETARCH]}.zip" -o "awscliv2.zip" && \ unzip awscliv2.zip && ./aws/install && rm -rf awscliv2.zip aws -RUN curl -L "https://github.com/getsops/sops/releases/download/${SOPS_VERSION}/sops-${SOPS_VERSION}.linux.amd64" \ +RUN curl -L "https://github.com/getsops/sops/releases/download/${SOPS_VERSION}/sops-${SOPS_VERSION}.linux.$TARGETARCH" \ -o /usr/local/bin/sops && chmod +x /usr/local/bin/sops -RUN curl -L https://github.com/mikefarah/yq/releases/download/v4.34.1/yq_linux_amd64 \ +RUN curl -L https://github.com/mikefarah/yq/releases/download/v4.34.1/yq_linux_$TARGETARCH \ -o /usr/local/bin/yq && chmod +x /usr/local/bin/yq RUN curl -s https://yamlscript.org/install | BIN=1 bash -RUN useradd -m -s /usr/bin/bash -G sudo ${USERNAME} +RUN useradd -m -s /usr/bin/bash -G sudo ${USERNAME} && echo "%sudo ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/sudo WORKDIR /home/${USERNAME} USER ${USERNAME} COPY . ./dotfiles diff --git a/.lima/.org b/.lima/.org index 06c5375..9ac6586 100644 --- a/.lima/.org +++ b/.lima/.org @@ -11,10 +11,23 @@ ** clone - [[https://github.com/lima-vm/lima][github.com/lima-vm/lima]] - + #+begin_src sh cd ~/src git clone https://github.com/lima-vm/lima #+end_src - + - [[~/src/lima]] + +** template + +- [ ] [[file+emacs:~/dotfiles/.lima/template.ys][template.ys]] + + #+begin_src bash + ys -J template.ys | yq -Poy > k8s.yaml + limactl start ./k8s.yaml + #+end_src + - initial version is a minor refactor of the k8s template from + [[~/src/lima/templates/k8s.yaml]] based on debian-13 instead of ubuntu + with the inline shell scripts refactored into separate files + - [ ] multi-node version with bridge mode, calico, & wireguard diff --git a/.org b/.org index fa59921..ca7fd94 100644 --- a/.org +++ b/.org @@ -20,7 +20,7 @@ - [[https://gitlab.com/jgmize/dotfiles/-/merge_requests?scope=all&state=all][Gitlab merge requests]] - [[https://github.com/jgmize/dotfiles/pulls?q=][Github pull requests]] -** TODO +** DONE - [X] add cloud CLIs - [X] aws @@ -30,13 +30,21 @@ #+begin_src sh docker pull ghcr.io/jgmize/dotfiles:gcloud-slim #+end_src -- [ ] add ys +- [X] add ys - [[https://yamlscript.org/doc/install/][Installing YS - YS — YAML Done Wisely]] +- [X] add multiplatform image + image: jgmize/dotfiles + tags: multiplatform, latest + +** TODO + - [ ] add sts #+begin_src yaml - image: ghcr.io/jgmize/dotfiles:gcloud-slim + #image: ghcr.io/jgmize/dotfiles:gcloud-slim + image: jgmize/dotfiles command: - sleep - infinity volumeMounts: TODO #+end_src +- [ ] fix sudo in gcloud-slim dockerfile