From e70c3138ce0f9b6bf9ebcce59a68bcb8b5f399ad Mon Sep 17 00:00:00 2001 From: aloslider <53711835+aloslider@users.noreply.github.com> Date: Tue, 21 Apr 2026 02:35:50 +0300 Subject: [PATCH] Add script skip for NixOS --- ...efore_11-set-zsh.sh => run_once_before_11-set-zsh.sh.tmpl} | 4 ++++ .chezmoiscripts/run_once_install-neovim.sh.tmpl | 4 ++++ ...ge-key.sh => run_onchange_before_10-setup-age-key.sh.tmpl} | 4 ++++ .chezmoiscripts/run_onchange_install-packages.sh.tmpl | 4 ++++ 4 files changed, 16 insertions(+) rename .chezmoiscripts/{run_once_before_11-set-zsh.sh => run_once_before_11-set-zsh.sh.tmpl} (87%) mode change 100755 => 100644 rename .chezmoiscripts/{run_onchange_before_10-setup-age-key.sh => run_onchange_before_10-setup-age-key.sh.tmpl} (91%) diff --git a/.chezmoiscripts/run_once_before_11-set-zsh.sh b/.chezmoiscripts/run_once_before_11-set-zsh.sh.tmpl old mode 100755 new mode 100644 similarity index 87% rename from .chezmoiscripts/run_once_before_11-set-zsh.sh rename to .chezmoiscripts/run_once_before_11-set-zsh.sh.tmpl index 7f984e9..7026806 --- a/.chezmoiscripts/run_once_before_11-set-zsh.sh +++ b/.chezmoiscripts/run_once_before_11-set-zsh.sh.tmpl @@ -1,4 +1,8 @@ #!/bin/bash +{{ if -eq .chezmoi.osRelease.id "nixos" }} +exit 0 +{{ end }} + set -euo pipefail ZSH_PATH="$(which zsh)" diff --git a/.chezmoiscripts/run_once_install-neovim.sh.tmpl b/.chezmoiscripts/run_once_install-neovim.sh.tmpl index ec35cc9..e0f4a32 100755 --- a/.chezmoiscripts/run_once_install-neovim.sh.tmpl +++ b/.chezmoiscripts/run_once_install-neovim.sh.tmpl @@ -1,4 +1,8 @@ #!/bin/bash +{{ if -eq .chezmoi.osRelease.id "nixos" }} +exit 0 +{{ end }} + set -euo pipefail SRC_DIR="${HOME}/apps/neovim" diff --git a/.chezmoiscripts/run_onchange_before_10-setup-age-key.sh b/.chezmoiscripts/run_onchange_before_10-setup-age-key.sh.tmpl similarity index 91% rename from .chezmoiscripts/run_onchange_before_10-setup-age-key.sh rename to .chezmoiscripts/run_onchange_before_10-setup-age-key.sh.tmpl index b8c6943..8dd69f6 100755 --- a/.chezmoiscripts/run_onchange_before_10-setup-age-key.sh +++ b/.chezmoiscripts/run_onchange_before_10-setup-age-key.sh.tmpl @@ -1,4 +1,8 @@ #!/bin/bash +{{ if -eq .chezmoi.osRelease.id "nixos" }} +exit 0 +{{ end }} + set -euo pipefail KEY_DIR="$HOME/.config/chezmoi" diff --git a/.chezmoiscripts/run_onchange_install-packages.sh.tmpl b/.chezmoiscripts/run_onchange_install-packages.sh.tmpl index 89fdd59..b7352fe 100755 --- a/.chezmoiscripts/run_onchange_install-packages.sh.tmpl +++ b/.chezmoiscripts/run_onchange_install-packages.sh.tmpl @@ -1,4 +1,8 @@ #!/bin/bash +{{ if -eq .chezmoi.osRelease.id "nixos" }} +exit 0 +{{ end }} + set -euo pipefail echo "Installing and updating packages..."