Something went wrong. Try again.
Something went wrong. Try again.
Files
- Shell 67%
- Nix 27%
- TypeScript 3%
- JavaScript 2%
- Makefile <1%
README.md
nix #
Flake migration based on https://github.com/sebastiant/dotfiles.
Pre-requisites #
Add current user to trusted users (only apply ONCE on the machine):
echo "trusted-users = root @wheel $USER" | sudo tee -a /etc/nix/nix.custom.conf
echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.custom.conf
sudo systemctl restart nix-daemon
Usage #
See ./scripts.
Rust #
If nix gc borks rust, run following commands:
rustup show
rustup toolchain remove $toolchain_version
rustup install 1.90.0
or
rustup toolchain uninstall stable
rustup toolchain install stable
Run sudo without typing password #
echo "$(whoami) ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/99-nopasswd-$(whoami)
Mac OS Extras #
- Login to
App Store make mac
Linux Extras #
- If you need
tailscale,caddy,fail2ban, ordockeron your server, install it via your system's package manager, since nix requires you to set up systemd services explicitly.
Post-installation instructions #
Linux #
Set default shell #
`chsh` and type `$HOME/.nix-profile/bin/fish`
# or this one
`vi /etc/passwd` and specify shell for your user
MacOS: Misc config #
- set
tap to single click - set
three-finger drag
Useful commands #
# backup vscode extensions list
code --list-extensions | xargs -L 1 echo code --install-extension > ext_install.sh
# backup vscode config
cp "/users/$USER/Library/Application Support/Code/User/keybindings.json" .
cp "/users/$USER/Library/Application Support/Code/User/settings.json" .