Surprised at how useful I've found kasmweb!
Since I use Nix inside my development container in kasm, thought I would share the config for any other kasm users wanting to use Nix inside a container.
Docker Exec Config:
{ "first_launch": { "user": "root", "cmd": "bash -c 'echo \"kasm-user ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers'" } }
Volume mappings:
{ "/opt/kasm-volumes/ubuntu/{username}/nix": { "bind": "/nix", "mode": "rw", "uid": 1000, "gid": 1000, "required": true, "skip_check": false }, "/opt/kasm-volumes/ubuntu/{username}/etc/profile.d": { "bind": "/etc/profile.d", "mode": "rw", "uid": 1000, "gid": 1000, "required": true, "skip_check": false } }
I did the /etc/profile.d
mapping after I installed Nix in the container and I copied all the original /etc/profile.d
content to the new folder on the host.
I also have Kasm's persistence enabled.