VS Code extension cannot find libudev

Hello everyone,

I’m currently testing nixOS on a VM to experiment the features of this system and maybe migrate to it in the future. But i’m facing some very strange problems while i’m trying to set everything up. I’ve tried to install Visual Studio Code and configure it for IoT development. This requires the Serial Monitor extension, which is an official extension provided by Microsoft to manage serial outputs. The problem here is that the extension can’t run properly because of a apparently missing library. I supose that the extension tries to search for libudev in the default locations, where the other Linux distros normally put on.

I’ve already tried both vscode and vscode-fhs packages and none of them solved my problem.

The image shows the content of the libudev-zero extension that i also included on my configuration.nix file. Besides the file exist on the /nix/store folder, it can’t be recognized by the vscode package. The Serial Monitor extension does not provide an option to specify the directory of this package.

I really tried so much to solve this problem but i simply could not by myself. If anyone have any idea of what can be done here, o would be extremelly grateful.

By the way, this is my configuration.nix file.