[nix] initial work on event saving

there you go