New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Macs on Linux #84
Macs on Linux #84
Conversation
macs/README.md
Outdated
parted /dev/sda -- set 3 boot on | ||
``` | ||
|
||
2. Create a zpool with `/dev/sda` and mount it: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. Create a zpool with `/dev/sda` and mount it: | |
2. Create a zpool with `/dev/sda1` and mount it: |
export HOME=~root | ||
export ALLOW_PREEXISTING_INSTALLATION=1 | ||
env | ||
curl https://nixos.org/releases/nix/nix-2.1.3/install > ~nixos/install-nix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like the nix version should be configurable somewhere central so we can update all of the fleet easily
|
||
sudo -i -H -u nixos -- nix-channel --add https://nixos.org/channels/nixos-19.03 nixpkgs | ||
sudo -i -H -u nixos -- nix-channel --add https://github.com/LnL7/nix-darwin/archive/master.tar.gz darwin | ||
sudo -i -H -u nixos -- nix-channel --update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are all those channels being used? nixpkgs is quite big to download nowadays
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest, I'm not sure if it is critical we have them for root and the user. This would be a good thing to figure out :)
Upstreaming a too-long separated out part of the infrastructure definition: the macOS VMs on NixOS, on Apple Mac Mini hardware.
A few things to note here:
Intake on a new wireguard module looks like adding a new entry to https://github.com/NixOS/nixos-org-configurations/compare/master...grahamc:macs-on-linux?expand=1#diff-734f5dc96ba41a65038635dcfa9c951aR6
First an entry is added with an IP but no public key, then that machine is deployed to. Then the public key is fetched from
sudo wg
on that machine, and it is added back to the configuration.Take a look, and if you like it I'll deploy it to chef too.