I’m working on small nix flake to standardize the developer environments at my job.

What I’m still missing, however, is a way to clean up after leaving the shell. Some hook to call a shell script, when the shell is closed.

Is there something like this? I thought about wrapping the actual nix develop call inside a bash script and waiting for nix to terminate, but that seems rather hacky.

  • leisesprecher@feddit.orgOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 days ago

    I would externalize it into a separate script/command anyway (the skeleton already exists).

    However, knowing myself, I would certainly forget cleaning up manually once in a while. My goal was to create truly self-contained, stupid-simple dev environments - or get as close as possible to it.