this post was submitted on 24 Jan 2025
13 points (100.0% liked)
Nix / NixOS
1932 readers
1 users here now
Main links
Videos
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If I'm not mistaken, everything in nix uses bash. So you should be able to use
trap
to catch theEXIT
signal and execute a cleanup script. Here's a guideAnti Commercial-AI license
Id never heard of trap. This is awesome! Thank you for sharing