From e45a28ee7e42ad8f90d936da9a019b966ff85624 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Sun, 8 Nov 2026 05:08:46 +0400 Subject: [PATCH] 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 --- configuration.nix | 1 + modules/projects-bind.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 modules/projects-bind.nix diff --git a/configuration.nix b/configuration.nix index f461dd5..14fb385 100644 --- a/configuration.nix +++ b/configuration.nix @@ -24,6 +24,7 @@ ./modules/gaming.nix ./modules/litecoin.nix ./modules/xfce-x11-test.nix + ./modules/projects-bind.nix # ./modules/hostel-wifi.nix # disabled 2026-05-08 — re-enable when needed ]; diff --git a/modules/projects-bind.nix b/modules/projects-bind.nix new file mode 100644 index 0000000..8f1c81d --- /dev/null +++ b/modules/projects-bind.nix @@ -0,0 +1,13 @@ +# ~/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" ]; + }; +}