diff --git a/home/dot_config/npm/config/npm-init.js b/home/dot_config/npm/config/npm-init.js deleted file mode 100644 index f2fa931b..00000000 --- a/home/dot_config/npm/config/npm-init.js +++ /dev/null @@ -1,29 +0,0 @@ -/* eslint-disable no-secrets/no-secrets */ -/* eslint-disable node/no-unsupported-features/es-syntax */ -import { execSync } from 'node:child_process' - -/** - * Acquires latest version of GitSync and runs setup / maintainence tasks - */ -execSync( - ` -if command -v curl > /dev/null && command -v task > /dev/null; then - if [ ! -d "\${XDG_DATA_HOME:-$HOME/.local/share}/gitsync/local" ]; then - mkdir -p "\${XDG_DATA_HOME:-$HOME/.local/share}/gitsync/local" - fi - curl -sSL https://gitsync.org/init > "\${XDG_DATA_HOME:-$HOME/.local/share}/gitsync/local/Taskfile-init.yml" - task --taskfile "\${XDG_DATA_HOME:-$HOME/.local/share}/gitsync/local/Taskfile-init.yml" -else - echo 'Skipping NPM init script because curl and / or task are not in the PATH' -fi -`, - { stdio: 'inherit' } -) - -export default { - main: 'index.js', - scripts: { - start: 'node index.js' - }, - version: '0.0.1' -} diff --git a/home/dot_config/npm/favorites.yml b/home/dot_config/npm/favorites.yml deleted file mode 100644 index 203f2b41..00000000 --- a/home/dot_config/npm/favorites.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -favorites: - - pkg: tasuku - github: https://github.com/privatenumber/tasuku - desc: The minimal task visualizer for Node.js \ No newline at end of file diff --git a/software.yml b/software.yml index 92773c89..8a3a3e98 100644 --- a/software.yml +++ b/software.yml @@ -2642,7 +2642,7 @@ softwarePackages: cask: nicoverbruggen/homebrew-cask/phpmon mise: _bin: mise - _github: + _github: _name: mise _post: | #!/usr/bin/env bash @@ -3231,7 +3231,7 @@ softwarePackages: # @brief Logs into DockerHub for Docker Desktop # @description # This script logs into DockerHub so that Docker Desktop is pre-authenticated. This - # functionality requires that the `DOCKERHUB_USER` be passed in as an environment variable (or + # functionality requires that the `DOCKERHUB_USER` be passed in as an environment variable (or # directly editted in the `~/.config/chezmoi/chezmoi.yaml` file) and that the `DOCKERHUB_TOKEN` # be passed in as a secret (either via the encrypted secret method or passed in as an environment # variable). @@ -5292,7 +5292,7 @@ softwarePackages: ### Populate appropriate token case "$OSTYPE" in solaris*) echo "TODO" ;; - darwin*) GITLAB_RUNNER_TOKEN="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "GITLAB_RUNNER_TOKEN_DARWIN")) }}{{ includeTemplate "secrets/GITLAB_RUNNER_TOKEN_DARWIN" | decrypt | trim }}{{ else }}{{ env "GITLAB_RUNNER_TOKEN_DARWIN" }}{{ end }}" ;; + darwin*) GITLAB_RUNNER_TOKEN="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "GITLAB_RUNNER_TOKEN_DARWIN")) }}{{ includeTemplate "secrets/GITLAB_RUNNER_TOKEN_DARWIN" | decrypt | trim }}{{ else }}{{ env "GITLAB_RUNNER_TOKEN_DARWIN" }}{{ end }}" ;; linux*) GITLAB_RUNNER_TOKEN="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "GITLAB_RUNNER_TOKEN_LINUX")) }}{{ includeTemplate "secrets/GITLAB_RUNNER_TOKEN_LINUX" | decrypt | trim }}{{ else }}{{ env "GITLAB_RUNNER_TOKEN_LINUX" }}{{ end }}" ;; bsd*) echo "TODO" ;; msys*) GITLAB_RUNNER_TOKEN="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "GITLAB_RUNNER_TOKEN_WINDOWS")) }}{{ includeTemplate "secrets/GITLAB_RUNNER_TOKEN_WINDOWS" | decrypt | trim }}{{ else }}{{ env "GITLAB_RUNNER_TOKEN_WINDOWS" }}{{ end }}" ;; @@ -5321,7 +5321,7 @@ softwarePackages: {{ end -}} {{ end }} fi - + ### Register VirtualBox based runners if VirtualBox is installed if [ $HAS_VIRTUALBOX -eq 1 ]; then logg info 'Registering GitLab Runner(s) that use VirtualBox executor' @@ -5395,12 +5395,12 @@ softwarePackages: if command -v gitomatic > /dev/null; then ### Copy bin to /usr/local/bin logg info "Copying $HOME/.local/bin/gitomatic-service to /usr/local/bin/gitomatic-service" && sudo cp -f "$HOME/.local/bin/gitomatic-service" /usr/local/bin/gitomatic-service - + ### Copy gitomatic to global directory if [ ! -f /usr/local/bin/gitomatic ]; then logg info 'Copying gitomatic executable to /usr/local/bin/gitomatic' && sudo cp -f "$(which gitomatic)" /usr/local/bin/gitomatic fi - + if [ -d /Applications ] && [ -d /System ]; then ### macOS logg info 'Copying gitomatic plist file to /Library/LaunchDaemons' && sudo cp -f "${XDG_CONFIG_HOME:-$HOME/.config}/gitomatic/com.github.muesli.gitomatic.plist" /Library/LaunchDaemons/com.github.muesli.gitomatic.plist @@ -6913,7 +6913,7 @@ softwarePackages: ansible: professormanhattan.lpass lux: _bin: lux - _github: + _github: _name: Lux go: github.com/iawia002/lux@latest brew: lux @@ -7956,7 +7956,7 @@ softwarePackages: ### netdata-claim.sh must be run as netdata user sudo -H -u netdata bash -c 'export NETDATA_ROOM="{{- if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "NETDATA_ROOM")) -}}{{- includeTemplate "secrets/NETDATA_ROOM" | decrypt | trim -}}{{- else -}}{{- env "NETDATA_ROOM" -}}{{- end -}}" && export NETDATA_TOKEN="{{- if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "NETDATA_TOKEN")) -}}{{- includeTemplate "secrets/NETDATA_TOKEN" | decrypt | trim -}}{{- else -}}{{- env "NETDATA_TOKEN" -}}{{- end -}}" && yes | netdata-claim.sh -token="$NETDATA_TOKEN" -rooms="$NETDATA_ROOM" -url="https://app.netdata.cloud"' - + ### Kernel optimizations # These are mentioned while installing via the kickstart.sh script method. We are using Homebrew for the installation though. # Assuming these optimizations do not cause any harm. @@ -7988,7 +7988,7 @@ softwarePackages: logg error 'No etc location found for netdata' && exit 1 fi logg info "Copying ${XDG_CONFIG_HOME:-$HOME/.config}/netdata/health.d/ to $NETDATA_ETC" && sudo cp -rf "${XDG_CONFIG_HOME:-$HOME/.config}/netdata/health.d/" "$NETDATA_ETC" - + if command -v gsed > /dev/null; then SED_UTIL="gsed" else @@ -7998,7 +7998,7 @@ softwarePackages: ### Blocky logg info "Adding Blocky metrics collection to $NETDATA_ETC/go.d/prometheus.conf" sudo "$SED_UTIL" -i "/jobs:/a\ - name: blocky_local \n url: 'http://127.0.0.1:4000/metrics'" "$NETDATA_ETC/go.d/prometheus.conf" - + ### SFTPGo logg info "Adding SFTPGo metrics collection to $NETDATA_ETC/go.d/prometheus.conf" sudo "$SED_UTIL" -i "/jobs:/a\ - name: sftpgo_local \n url: 'http://127.0.0.1:57500/metrics'" "$NETDATA_ETC/go.d/prometheus.conf" @@ -9992,7 +9992,7 @@ softwarePackages: zypper: restic gup: _bin: gup - _github: + _github: _name: Gup brew: nao1215/tap/gup go: github.com/nao1215/gup@latest @@ -10975,7 +10975,7 @@ softwarePackages: _home: https://github.com/skeeto/endlessh _name: Endlessh _service: endlessh - _post: | + _post: | #!/usr/bin/env bash # @file Endlessh Configuration # @brief Applies the Endlessh configuration and starts the service on Linux systems @@ -11863,7 +11863,7 @@ softwarePackages: yay: termius dagu: _bin: dagu - _github: + _github: _name: Dagu _post: | #!/usr/bin/env bash @@ -12246,7 +12246,7 @@ softwarePackages: # ## Links # # * [Privoxy configuration](https://github.com/megabyte-labs/install.doctor/tree/master/home/dot_config/privoxy/config) - + ### Define the Privoxy configuration location based on whether system is macOS or Linux if [ -d /Applications ] && [ -d /System ]; then ### macOS @@ -12272,7 +12272,7 @@ softwarePackages: sudo add-usergroup "$USER" privoxy fi sudo chown privoxy:privoxy "$PRIVOXY_CONFIG" 2> /dev/null || sudo chown privoxy:$(id -g -n) "$PRIVOXY_CONFIG" - + ### Restart Privoxy after configuration is applied if [ -d /Applications ] && [ -d /System ]; then ### macOS @@ -13879,7 +13879,7 @@ softwarePackages: # ## Links # # * [`fail2ban` configuration folder](https://github.com/megabyte-labs/install.doctor/tree/master/home/private_dot_ssh/fail2ban) - + ### Notify of script start logg info 'Configuring fail2ban'