Either with Nix on NixOS or Determinate Nix on macOS, run:
nix run --refresh github:dseum/nix-config#initThis avoids you having to manually deal with the repository and allows you to inject into /etc/nixos (NixOS) or /etc/nix-darwin (macOS; symlink of /private/etc/nix-darwin) with the current user assumed to be the owner. That path will be referred to as <nix-config. Any previous file or directory at that path are cp -a into the <nix-config>.backup.
If on macOS, you need to disable SIP for yabai and xcode-select --install for Homebrew.
Then, to build and switch, run:
nix run <nix-config>#build-switchThat's it!
Thanks to dustinlyons/nixos-config for the starter that began this project!