Improve virtualized macos-ventura settings
Allow ssh into it on the standard port
This commit is contained in:
parent
9c9cc992b8
commit
1d4f9fecdc
1 changed files with 15 additions and 6 deletions
|
@ -1,15 +1,24 @@
|
||||||
{ fleetFlake, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
services.macos-ventura = {
|
services.macos-ventura = {
|
||||||
enable = true;
|
enable = true;
|
||||||
cores = 8;
|
cores = 8;
|
||||||
threads = 8;
|
threads = 8;
|
||||||
mem = "8G";
|
mem = "16G";
|
||||||
vncListenAddr = "0.0.0.0";
|
vncListenAddr = "0.0.0.0";
|
||||||
|
sshListenAddr = "127.0.0.1";
|
||||||
extraQemuFlags = [ "-nographic" ];
|
extraQemuFlags = [ "-nographic" ];
|
||||||
sshPort = 2021;
|
sshPort = 2022;
|
||||||
installNix = true;
|
vncDisplayNumber = 1; # means port 59001
|
||||||
stateless = true;
|
stateless = false;
|
||||||
darwinConfig = fleetFlake.darwinConfigurations.archer;
|
openFirewall = true;
|
||||||
|
autoStart = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.ssh.extraConfig = lib.mkAfter ''
|
||||||
|
Host macos-ventura
|
||||||
|
Hostname localhost
|
||||||
|
Port 2022
|
||||||
|
Compression yes
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue