OSX configurations, expressed in Nix
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"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew analytics off
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 using the interactive script that they provide for multi-user installation.
sh <(curl -L https://nixos.org/nix/install) --daemon
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
nix run 'github:NixOS/nixpkgs/23.05#darwin.builder'
if you have issues with port 22 already being allocated you can disable remote login in your machine with the following command:
sudo systemsetup -setremotelogin off
If you have started already the builder vm and you want to stop it just run
pkill qemu
.
FN
a
for about 3 seconds untilcapslock
flashes and keyboard will swap tomac
mode.FN
w
for about 3 seconds untilcapslock
flashes and keyboard will swap toWindows
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 untilcapslock
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.