gpt4 book ai didi

nix - nix 可以安装在/nix 以外的其他位置吗?

转载 作者:行者123 更新时间:2023-12-05 00:19:59 27 4
gpt4 key购买 nike

一段时间后,我的开发机器中的磁盘空间开始用完(只有 128GB)。出于这个原因,我决定将本地缓存存储(.npm、.m2、.ivy2 等)移动到外部驱动器。

在经历了众所周知的“ cabal hell ”之后,我最近转向 Nix 进行 Haskell 开发。不过,我还没有找到更改 Nix 商店位置的正确方法。

是否可以?

最佳答案

经过一点github考古,发现nixos commit f8cd904:

https://github.com/NixOS/nix/commit/f8cd904e05b95c5a3ca7cf570c0503a25a2095ca

这可以解决 gcc 3.3.3 中的行为(错误?)。相同的提交消息建议使用绑定(bind)挂载解决该问题:

On Linux, bind mounts can be used instead of symlink for this purpose (e.g., `mount -o bind /data/nix/store /nix/store').

关于nix - nix 可以安装在/nix 以外的其他位置吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29236953/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com