/dot-files

my dotfiles

Primary LanguageNix

My dot-files

https://builtwithnix.org

OSX configurations, expressed in Nix

Installation requirements

There are three requirements to be able to apply this setup:

  • homebrew
  • xcode developer tools
  • nix
  • being logged into the app store

Generate a ssh key and add it to github.

ssh-keygen -t rsa -b 4096 -N '' -C "EMAIL"

Installing homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew analytics off

official docs

Installing xcode developer tools

You need git to pull this repository if you open a terminal and type git then a prompt will appear asking you to install xcode developer tools.

Install nix

Install nix using the interactive script that they provide for multi-user installation.

sh <(curl -L https://nixos.org/nix/install) --daemon

official docs

Install

Before running the install script set the hostname to one list in the flake.nix.

sudo scutil --set HostName lair|swamp
sudo scutil --set LocalHostName lair|swamp
sudo scutil --set ComputerName lair|swamp
dscacheutil -flushcache
./install.sh

sudo scutil --set HostName swamp.local
sudo scutil --set LocalHostName swamp.local
sudo scutil --set ComputerName swamp.local
dscacheutil -flushcache
  • reboot
  • set the keyboard to British PC
  • press FN + ESC
  • import GPG keys
  • log into password manager
  • log into spotify
  • nvim tree-sitter install all

Varmilo keyboard

  • FN + a for about 3 seconds until capslock flashes and keyboard will swap to mac mode.
  • FN + w for about 3 seconds until capslock flashes and keyboard will swap to Windows mode.
  • If capslock does not flash after pressing any of the previous combinations mentioned above. Keyboard should be already in mentioned mode.
  • FN + ESC for about 3 seconds until capslock flashes and keyboard will be reset to defaults.
  • https://en.varmilo.com/keyboardproscenium/question
  • Hold Fn down and press ESC about 4 seconds, if Capslocked backlight can flash 3 times, it means reset succeed. If FN and left WIN swapped,hold left WIN down, and press ESC about 4 seconds, capslocked backlight will flash 3 times.