Files
dotfiles/README.md
Stefan Imhoff a41290c297 feat(nix): nix and back again
I tried Nix, but it had too many downsides so I removed it.

1. Didn't like that all files are immutable and simple config changes
need a complete rebuild.
2. Setting up a new Mac didn't work as smoothly as promised. Not worth
the effort.
3. It sucked a lot to always have to type in the password twice on each
darwin-rebuild
4. It solves problems I never had.
2024-08-07 17:49:02 +02:00

53 lines
1.0 KiB
Markdown

# Dotfiles
## Install Dependencies
First, install the Xcode command-line tools:
```sh
xcode-select --install
```
## Install Homebrew
```sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
## Install Initial Software
```sh
brew install stow
brew install --cask proton-pass
brew install --cask secretive
```
## Setup SSH
Log into the password manager, start and configure [Secretive](https://github.com/maxgoedjen/secretive) to setup SSH keys. Add the public key to GitHub and export the `SSH_AUTH_SOCK` (temporary) to be able to clone with SSH:
```sh
export SSH_AUTH_SOCK="$HOME/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh"
```
## Setup Hostname
```sh
sudo scutil --set HostName <hostname>
```
## Clone Dotfiles
```sh
git clone git@github.com:kogakure/dotfiles.git ~/.dotfiles
```
## Install Script
Log in with your Apple ID to be able to install app store apps. Run the install script to setup the computer:
```sh
cd ~/.dotfiles
./install.sh
```