nix-env: Add support for --delete-generations 15d

It will delete all generations older than the specified number of days.