Files and scripts for me to run when setting up a new system
- Install fleek and Nix
- Copy
./fleek.yml
to~/.fleek.yml
- Run
fleek apply
- Add the following to
~/.zshrc
to stop nix from breaking on OS updates:
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ];
then
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
If all went well all of the fleek packages should now be available!
- Copy the
./helix
directory to ~/.config/helix
Because fleek packages are deterministic it will get mad if you try to install global NPM packages by default.
To fix this add the following:
- Create/edit the file
~/.npmrc
. - Add the line
prefix = ${HOME}/.npm-packages
. - In
~/.zshrc
add the following:export PATH=~/.npm-packages/bin:$PATH
export NODE_PATH=~/.npm-packages/lib/node_modules
- Look at
./npm-global.txt
and install the current binaries.- Note some of them are generated from others (i.e. pnpx from pnpm) so use your best judegement!
Run the following to increase key repeat speed:
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
Below are some common issues I ran into and how to solve them.
If the delete key in tmux isn't working do the following:
- Create/edit the file ~/.tmux.conf
- Add the line
set -g default-terminal "xterm-256color"
. - Run
tmux kill-server
to restart the server.
At the moment hostnames seem kind of wonky and will just change. I suspect this is partly to do with changing networks (i.e. WiFi, ethernet, hotspot).
If this happens fleek apply
will fail. The fix at the moment is as follows:
- Get your current hostname by running
hostname
. - Rename the
hostname
line in.fleek.yml
to this new hostname.- Pay attention to the old hostname, we'll need it later!
- Run
fleeks
to navigate to your fleek setup. - Copy the directory named after the previous hostname to a directory named after the current hostname.
- Run
fleek apply
.
Whenever a change is made to ~/.fleek.yml
, ~/.config/helix/*
, or a glogal NPM package is installed run ./update.sh
.