![nix](https://socialify.git.ci/reo101/rix101/image?description=1&font=Source%20Code%20Pro&forks=1&issues=1&logo=https%3A%2F%2Fpablo.tools%2Fnixoscolorful.svg&owner=1&pattern=Circuit%20Board&pulls=1&stargazers=1&theme=Dark)
Based on nix-starter-configs
--- # Secrets ```bash # To put `agenix` and friends in `$PATH` nix develop cd secrets ``` ## Make new key ```bash rage-keygen -o key ``` ## Edit secret ```bash agenix -i key -e sub/dir/secret_file.age ``` ## Rekey all secrets ```bash agenix -i key --rekey ``` # 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 ```