Refactor Cloudreve restart logic and update configs
All checks were successful
Ansible Lint Check / check-ansible (push) Successful in 5s
Nix Format Check / check-format (push) Successful in 1m12s
Python Lint Check / check-python (push) Successful in 5s

- Refactor Cloudreve tasks to use conditional restart
- Remove unused displayData from Dashy config
- Add NVM and Japanese input setup to bash.nix
This commit is contained in:
2025-09-25 22:33:57 +02:00
parent e494369d11
commit 902d797480
3 changed files with 21 additions and 15 deletions

View File

@@ -62,6 +62,13 @@
eval "$(pyenv init - bash)"
fi
# NVM (if installed)
if [ -d "$HOME/.nvm" ]; then
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
fi
# Detect distribution and set CGO_CFLAGS for Pop!_OS
if [ -f /etc/os-release ]; then
distro=$(awk -F= '/^NAME/{print $2}' /etc/os-release | tr -d '"')
@@ -234,6 +241,11 @@
if [ -d "${config.home.homeDirectory}/Projects/Work" ]; then
export TRADAWARE_DEVOPS=true
fi
# Japanese input
export GTK_IM_MODULE=fcitx5
export QT_IM_MODULE=fcitx5
export XMODIFIERS="@im=fcitx5"
'';
# Interactive shell specific configuration