Mac VM, needs work to be useful but it "works" when installed.

This commit is contained in:
Chris Toph 2025-03-14 19:47:32 -04:00
parent 0698b52f7e
commit 2d703a0498
3 changed files with 24 additions and 0 deletions

View file

@ -18,6 +18,7 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# VM tools # VM tools
# nixtheplanet.url = "github:matthewcroughan/nixtheplanet";
nixvirt = { nixvirt = {
url = "https://flakehub.com/f/AshleyYakeley/NixVirt/*.tar.gz"; url = "https://flakehub.com/f/AshleyYakeley/NixVirt/*.tar.gz";
inputs.nixpkgs.follows = "nixpkgs-stable"; inputs.nixpkgs.follows = "nixpkgs-stable";

View 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"
];
};
}

View file

@ -37,6 +37,7 @@ in
"hosts/common/optional/nvtop.nix" # GPU monitor (not available in home-manager) "hosts/common/optional/nvtop.nix" # GPU monitor (not available in home-manager)
"hosts/common/optional/plymouth.nix" # fancy boot screen "hosts/common/optional/plymouth.nix" # fancy boot screen
"hosts/common/optional/vial.nix" # KB setup "hosts/common/optional/vial.nix" # KB setup
# "hosts/common/optional/ventura.nix" # macos vm
## Misc Inputs ## ## Misc Inputs ##