- Install UTM from: https://mac.getutm.app
- Download Arm64 image from https://nixos.org/download/#download-nixos
- Settings > Input > Caputre input automatically when entering full screen
- Settings > Display > Render Backend > ANGLE (OpenGL)
- Create new VM:
- Virtualize
- Linux
- Attach ISO
- Provide 8GB+ of RAM
- 2+ Cores
- Enable Hardware OpenGL acceleration
- 64GB+ of space
- Open VM Settings (on last before clicking 'Save')
- Edit VM Settings:
- Change Network Settings from 'Shared' to 'Bridged' mode.
- Add a new Network Controller
- Host Only
- Advanced Settings
- Guest Network must be: 192.168.128.0/24
- DHCP Start range must be: 192.168.128.1
- DCHP End range can be anything higher than 192.168.128.4 for safety.
- Save
- Start the VM:
- ad-hoc install git:
nix-shell -p git
- download the flakes!
git clone https://github.com/celesrenata/nix-flakes-demo
cd nix-flakes-demo
- setup the partitions for yourself without a fight
sudo ./setup.sh
- add "compress=zstd" to btrfs options lines in
vim /mnt/etc/nixos/hardware-configuration.nix
- install the system!
sudo nixos-install --root /mnt --flake /mnt/etc/nixos#nixberry
reboot
- Login with demo:demo
- System will reboot and configure itself
- Login again.
- Open foot
command + control + h
orcommand + space
and type 'foot' ip addr
- get the host only IP and remember it for the next steps.
- ad-hoc install git:
- Setup the Host system:
- install homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install uniclip:
brew install quackduck/tap/uniclip
uniclip 192.168.128.2:53701
Your IP may vary, your port will not.- Install Ollama:
brew install ollama
- Start Ollama
- install model, system is designed for the codellama:13b-instruct model, you can change it when you are wise enough in this environment under:
.config/ags/services/gpt.js
ollam run codellama:13b-instruct
/bye
- Stop Ollama
launchctl setenv OLLAMA_HOST "192.168.128.1"
change host to0.0.0.0
if you want it local and remote.- Start Ollama
- Test Ollama connectivity from VM
- install homebrew:
- Yeah, but no gestures!?
- That is a current limitation of UTM, sorry! BUT! if you attach your apple touchpad to your macbook and then pass the touchpad to the VM as a USB device, you will a great time, I promise!
-
Notifications
You must be signed in to change notification settings - Fork 0
Demo Presentation
License
celesrenata/nix-flakes-demo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Demo Presentation
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published