devenv
devenv copied to clipboard
hosts = { ... } doesn't work if /etc/hosts is not writable
This should be added to the docs womewhere:
To make hosts (hostctl) work in NixOS this setting is required.
It changes /etc/hosts to be writable for root.
environment.etc.hosts.mode = "0644";
Yeah, we should emit that error, could you make a PR?
I had to delete the .devenv folder for this to work for some reason. But it works after:
- make
/etc/hostswriteable - delete projects
.devenvfolder devenv updevenv shell ping myhostname