From 41620e65ae51bbee677eecc1a9caa22fbc36525e Mon Sep 17 00:00:00 2001 From: reo101 Date: Mon, 23 Oct 2023 09:04:39 +0300 Subject: [PATCH] feat(README): add rough installation notes Only for `NixOS` and `darwin` `nix-on-droid` is TODO --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index d4822c5..8d27d8d 100644 --- a/README.md +++ b/README.md @@ -44,3 +44,35 @@ --- + +# NixOS setup + +```bash +# Initial setup +nix run nixpkgs#nixos-anywhere -- --flake .#${HOSTNAME} --build-on-remote --ssh-port 22 root@${HOSTNAME} --no-reboott + +# Deploy +deploy .#${HOSTNAME} --skip-checks +``` + +--- + +# Mac (silicon) setup + +```sh +# Setup system tools +softwareupdate --install-rosetta --agree-to-license +sudo xcodebuild -license + +# Install nix +curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install + +# Apply configuration +git clone https://www.github.com/reo101/rix101 ~/.config/rix101 +cd ~/.config/rix101 +nix build ".#darwinConfigurations.${HOSTNAME}.system" +./result/sw/bin/darwin-rebuild switch --flake . + +# System setup for `yabai` (in system recovery) +csrutil enable --without fs --without debug --without nvram +```