

NixosConfigurations.some-host = rec \ || Nixos-vscode-server.url ="github:mudrii/nixos-vscode-ssh-fix/main" Nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable" We have two options, both using user Systemd service that monitors /home/$USER/.vscode-server/*. SolutionĪfter some googling, we found few potential solutions we could implement in nix native expressions: Original solution. The workaround that was provided wasn’t elegant for our taste and we strive to automate our infrastructure as code in all aspects and any manual fix wasn’t acceptable.

You can find a good description in the VScode GitHub issue. Problem to Be Solvedĭuring initial testing, we noticed once we try to connect to a remote ssh development environment, we encounter errors due to the nature of Nix. All our NixOs configuration was in the git repository.Ī good source of the documentation Remote Development using SSH and Remote Development Tips and Tricks. NixOS is based on nix functional programming configuration language where everything is declarative. My team used the VScode Remote SSH plugin to develop applications from Local laptops and remote Google Cloud VM running on NixOS.ĭevelopment laptops that the team was using were limited in resources.įrom the beginning, we decided to use remote development on NixOs as it allowed us to manage consistency in package management and manage dependency for Python and node.js projects.
