Skip to content

Commit

Permalink
Merge pull request #8 from MatthewCroughan/mc/disksize
Browse files Browse the repository at this point in the history
 makeDarwinImage: pass cfg.package diskImage to runScript
  • Loading branch information
MatthewCroughan authored Dec 14, 2023
2 parents b52ccb8 + aa1c296 commit 40b9d6f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ This flake exports a function `makeDarwinImage` which takes a `diskSizeBytes` ar
}
```

Using the `makeDarwinImage` function directly, you could increase the size of the macOS image used by `services.macos-ventura.enable = true` in your NixOS config as follows:

```nix
{ pkgs, ... }:
{
services.macos-ventura = {
enable = true;
package = pkgs.makeDarwinImage { diskSizeBytes = 60000000000; };
};
}
```

# Windows/DOS

Each of the outputs in this flake have their own image builders and `runScript`.
Expand Down
1 change: 1 addition & 0 deletions makeDarwinImage/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ in
};
config = let
run-macos = cfg.package.makeRunScript {
diskImage = cfg.package;
extraQemuFlags = [ "-vnc ${cfg.vncListenAddr}:${toString cfg.vncDisplayNumber}" ] ++ cfg.extraQemuFlags;
inherit (cfg) threads cores sockets mem sshPort;
};
Expand Down

0 comments on commit 40b9d6f

Please sign in to comment.