Refactor Cloudreve restart logic and update configs
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user