I’m normally a robotics software developer, where ros2 is very important. However, most of the ros2 stuff only works on ubuntu, so I need to use a dev container if I’m going to use it everywhere.
So I’ve created a gitlab repository with bash scripts to prepare the environment for my container and start it. I thought maybe some parts of these scripts could be included in my config.nix. ros2_main_dev_container
do you know for example, how to include the following into the config.nix?
Note that in you need to should use absolute paths (activation happens as root, so if I’m not mistaken, ~ might not resolve to what you expect) and might also need to chown afterwards.
Other option: Pull in the home-manager module and use home-manager to generate the dirs for the desired user.