Skip to content

liamawhite/os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

os

macOS

Bootstrapping

Install dependencies

xcode-select --install
softwareupdate --install-rosetta

Install nix from Determinate Systems

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --determinate

First-time installations require you to move the current /etc/nix/nix.conf out of the way.

[ -f /etc/nix/nix.conf ] && sudo mv /etc/nix/nix.conf /etc/nix/nix.conf.before-nix-darwin

Clone this repo

mkdir ~/.ssh
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
git clone https://github.com/liamawhite/os.git

Configure your system!

nix --extra-experimental-features 'nix-command flakes' run .#build-switch

Additional Steps

Its probably possible to automate these steps but I've not had time to research how.

  • Remove mission control control arrow bindings. Settings -> Keyboard -> shortcuts -> Mission Control -> All ^ shortcuts.

Setup syncthing...

Updating

Once bootstrapped, you can just use ./switch

switch

PiOS

PiOS must be configured with username pios, wireless LAN access and password authenticated SSH when flashing the image.

SSH into the Pi.

ssh pios@<ip-address>

Install nix from Determinate Systems.

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --determinate

Run the bootstrap script.

nix-shell -p git home-manager curl --run "curl --proto '=https' --tlsv1.2 -sSf -L https://raw.githubusercontent.com/liamawhite/os/refs/heads/main/bootstrap/pios.sh | sh -s"

If you're planning on using an NVMe SSD run the clone script to partition and copy over PiOS to the ssd, then reboot.

~/boot/clone.sh
~/boot/reboot.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published