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..."