-
Ensure darwin-nix is installed
-
Configure darwin linux builder (ensure following snippet is added to your darwin-configuration.nix)
...
nix.linux-builder = {
enable = true;
ephemeral = true;
maxJobs = 4;
config = {
virtualisation = {
darwin-builder = {
diskSize = 200 * 1024;
memorySize = 8 * 1024;
};
cores = 6;
};
};
};
nix.settings.trusted-users = [ "@admin" ];
...
- Build builder
darwin-rebuild switch
- Provision vm
make provision
- Can rebuild vm from inside itself with
make rebuild