This commit is contained in:
Brian Zalewski 2023-03-20 15:22:58 -04:00
parent 2b1caba409
commit 735c2644a6
5 changed files with 14 additions and 10 deletions

View file

@ -10,7 +10,10 @@ logg info 'A sudo password is required to apply some of the macOS optimizations.
sudo echo "Sudo access granted."
# Log commands
set +x
if [ "$DEBUG" = 'true' ]; then
set -x
fi
set -x
# Enable SSH access
sudo systemsetup -setremotelogin {{ .macosRemoteLogin }}
@ -216,11 +219,12 @@ sudo systemsetup -setcomputersleep Off > /dev/null
sudo pmset -a hibernatemode 0
# Remove the sleep image file to save disk space
sudo rm /private/var/vm/sleepimage
# Create a zero-byte file instead…
sudo touch /private/var/vm/sleepimage
# …and make sure it cant be rewritten
sudo chflags uchg /private/var/vm/sleepimage
if sudo rm -f /private/var/vm/sleepimage > /dev/null; then
# Create a zero-byte file instead…
sudo touch /private/var/vm/sleepimage
# …and make sure it cant be rewritten
sudo chflags uchg /private/var/vm/sleepimage
fi
###############################################################################
# Screen #

View file

@ -1,5 +1,4 @@
[include]
path = ~/.local/share/delta/themes.gitconfig
path = ~/.config/git/local.toml
[advice]
detachedHead = false

View file

@ -1,4 +1,4 @@
cache=${XDG_CACHE_HOME:-$HOME/.cache}/npm
cache={{ .chezmoi.homeDir }}/.cache/npm
init-author-email={{ .user.email }}
init-author-name="{{ .user.name }} <{{ .user.email }}> ({{ .user.domain }})"
init-author-url="{{ .user.domain }}"
@ -7,6 +7,6 @@ init-module=${XDG_CONFIG_HOME:-$HOME/.config}/npm/config/npm-init.js
init-version=0.0.1
loglevel=error
network-concurrency=32
prefix=${XDG_DATA_HOME:-$HOME/.local/share}/npm
prefix={{ .chezmoi.homeDir }}/.local/share/npm
strict-peer-dependencies=false
//registry.npmjs.org/:_authToken={{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "NPM_TOKEN")) }}{{ includeTemplate "secrets/NPM_TOKEN" | decrypt }}{{ else if (env "NPM_TOKEN") }}{{ env "NPM_TOKEN" }}{{ else }}${NPM_TOKEN}{{ end }}

View file

@ -12,7 +12,7 @@
logg info 'Ensuring public keys are present'
find "$HOME/.ssh" -maxdepth 1 ! -name "*.pub" ! -name "authorized_keys*" ! -name "known_host*" ! -name "config" | while read FILE; do
find "$HOME/.ssh" -type f -maxdepth 1 ! -name "*.pub" ! -name "authorized_keys*" ! -name "known_host*" ! -name "config" | while read FILE; do
if [ ! -f "${FILE}.pub" ]; then
logg info 'Generating missing public key for `'"$FILE"'`'
ssh-keygen -f "$FILE" -y > "${FILE}.pub"

View file

@ -7932,6 +7932,7 @@ softwarePackages:
_home: null
_name: trivy
_type: cli
brew: trivy
github: github.com/aquasecurity/trivy
yay: trivy-bin
_service: false