Skip to content

gilacost/dot-files

Repository files navigation

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

Starting a nix linux-builder on macos

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.

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.