Is it possible to save some of the Nix store on an external drive?

My main SSD is not very large, and I’d like to install certain packages to an external hard drive, accepting the performance drop that comes with that. Some package managers, such as Flatpak, allow this. Does Nix(OS) have the capability to store some packages’ Nix store data on another drive? If so, what would I need to add to my configuration.nix? Thanks!

1 Like