I’m wondering if it’s possible on NixOS to detect if the system has changed to another version since it booted? To make it simple, I’d like to detect if nixos-rebuild test / switch has been run.
The kernel version could be used, but it rarely change so it’s not very effective.