Mac VM, needs work to be useful but it "works" when installed.
This commit is contained in:
parent
0698b52f7e
commit
2d703a0498
3 changed files with 24 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
# VM tools
|
||||
# nixtheplanet.url = "github:matthewcroughan/nixtheplanet";
|
||||
nixvirt = {
|
||||
url = "https://flakehub.com/f/AshleyYakeley/NixVirt/*.tar.gz";
|
||||
inputs.nixpkgs.follows = "nixpkgs-stable";
|
||||
|
|
22
hosts/common/optional/ventura.nix
Normal file
22
hosts/common/optional/ventura.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
inputs.nixtheplanet.nixosModules.macos-ventura
|
||||
];
|
||||
|
||||
services.macos-ventura = {
|
||||
enable = true;
|
||||
package = pkgs.makeDarwinImage { diskSizeBytes = 80000000000; };
|
||||
openFirewall = true;
|
||||
vncListenAddr = "0.0.0.0";
|
||||
autoStart = false;
|
||||
extraQemuFlags = [
|
||||
"-spice"
|
||||
"port=5930,addr=127.0.0.1,disable-ticketing"
|
||||
];
|
||||
};
|
||||
}
|
|
@ -37,6 +37,7 @@ in
|
|||
"hosts/common/optional/nvtop.nix" # GPU monitor (not available in home-manager)
|
||||
"hosts/common/optional/plymouth.nix" # fancy boot screen
|
||||
"hosts/common/optional/vial.nix" # KB setup
|
||||
# "hosts/common/optional/ventura.nix" # macos vm
|
||||
|
||||
## Misc Inputs ##
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue