My development environment
Clone this repository and run the initial setup:
mkdir -p ~/src/github.com/holidayworking
cd ~/src/github.com/holidayworking
git clone git@github.com:holidayworking/dotfiles.git
cd dotfiles
make darwin/setup
After make darwin/setup
completes, open a new terminal and configure the fish shell:
cd ~/src/github.com/holidayworking/dotfiles
make fish/setup
make lima/create
Add the following configuration to your ~/.ssh/config
file on macOS:
Host taurus
IdentityFile "~/.lima/_config/user"
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
Hostname 127.0.0.1
Port 60022
Note: The following commands should be run on your macOS host, not inside the VM.
make lima/bootstrap
SSH into the VM and complete the fish shell setup:
cd ~/src/github.com/holidayworking/dotfiles
make fish/setup
make vm/create
-
After VM startup, log into the VM console and become the root user:
sudo -i passwd
-
Find the VM's IP address (look for the
inet
address onenp0s1
or similar interface):ip addr show
Note: The following commands should be run on your macOS host, not inside the VM.
-
Run the bootstrap command with the VM's IP address:
make vm/bootstrap VM_IP=<VM_IP_ADDRESS>
Replace
<VM_IP_ADDRESS>
with the actual IP address found in Step 2. -
The NixOS installation will complete and the VM will automatically restart.
Add the following configuration to your ~/.ssh/config
file on macOS:
Host gemini
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
HostName <VM_IP_ADDRESS>
Replace:
<VM_IP_ADDRESS>
with the actual IP address from Step 2
SSH into the VM and complete the fish shell setup:
ssh gemini
mkdir -p ~/src/github.com/holidayworking
cd ~/src/github.com/holidayworking
git clone git@github.com:holidayworking/dotfiles.git
cd dotfiles
make fish/setup