this post was submitted on 24 Jan 2025
12 points (100.0% liked)

Nix / NixOS

2386 readers
4 users here now

Main links

Videos

founded 2 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] leisesprecher@feddit.org 1 points 6 months ago

I'm not talking about deleting anything nix related or downloadable, but development artifacts. Running Docker images, temporary data, services that were started during the development, etc.

That is the opposite of using it once, but using it multiple times a day, because developers often need to switch projects.