chmod 600 ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa.pub
chmod 644 ~/.ssh/known_hosts
chmod 755 ~/.ssh
cd
mkdir -p .config
cd .config
git clone git@github.com:Azd325/dotfiles.git nixpkgs
curl -L https://nixos.org/nix/install | sh # restart afterwards
cd ~/.config/nixpkgs
nix --experimental-features 'nix-command flakes' build .#aarch64
./result/sw/bin/darwin-rebuild switch --flake .
nix flake update
darwin-rebuild switch --flake ".#aarch64"
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
~/.config/emacs/bin/doom install