Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
(first time contributor)
If NixOS is run as a Hyper-V guest, enabling vsock transport allows
Modification is ported from Microsoft's Ubuntu scripts:
Motivation for this change
If NixOS is run as a Hyper-V guest, enabling vsock transport allows to use enhanced session mode when connecting from the host operating system. Modification is ported from Microsoft's Ubuntu scripts: https://github.com/microsoft/linux-vm-tools/blob/4dcc278f842ef1de4cc2c7b24ecb1c048415ff07/ubuntu/18.04/install.sh#L47-L55
I noticed that setting the default to virtualisation.hypervGuest.enable might break the setup of people who do use RDP but have not set up enhanceded session mode at the moment (some setup is needed on the windows side of things for vsock to work). Therefore false is a much safer default.