Revert "Change file path handling from .nix to generic"

This reverts commit 21cf6c0114808cbc704545ed4e2a5003e5193986.