nixOS/modules/projects-bind.nix
Sergei Poljanski e45a28ee7e
projects-bind: bind anotherim back from /mnt/data
The root filesystem filled up, so ~/Code/projects/anotherim moved to
/mnt/data. Bind-mount it back to its old path so tools that refer to it
by path (Claude Code project memory, git worktrees, dev flakes) keep
working. /mnt/data is plain ext4, not LUKS; that tradeoff was accepted
for the move.

Assisted-by: Claude:opus-5-5
2026-11-08 05:08:46 +04:00

13 lines
494 B
Nix

# ~/Code/projects/anotherim lives on /mnt/data (root was full): bound back
# to its old path, so tools that know it by path (Claude Code's per-project
# memory, git worktrees, the .dev flakes, interop's aish) see no change.
# /mnt/data is plain ext4, not LUKS: the move accepted that.
{ ... }:
{
fileSystems."/home/asxpi/Code/projects/anotherim" = {
device = "/mnt/data/anotherim";
fsType = "none";
options = [ "bind" "nofail" "x-systemd.requires-mounts-for=/mnt/data" ];
};
}