link
sh <(curl -L https://nixos.org/nix/install)
mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes >> ~/.config/nix/nix.conf
git clone https://github.com/arinono/.dotfiles ~/.dotfiles
cd ~/.dotfiles
nix shell nixpkgs#git-crypt
# Copy the key over
git crypt unlock ~/.ssh/git_crypt_dotfiles
link
# with nix
nix -L run ./nix#installBrew
# regular
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# macos
## 1st run
nix run nix-darwin/master#darwin-rebuild -- switch --flake ./nix#<your-hostname>
## later run
darwin-rebuild switch --flake ./nix#<your-hostname>
# nixos
sudo nixos-rebuild switch --flake ~/.dotfiles/nix#<your-hostname>