From 681cbcb117281ec0c11d1df9c1935248de3ac348 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Mon, 19 Jan 2026 23:34:08 -0500 Subject: [PATCH] yarn: fix impermiance home directory --- system/impermanence.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/system/impermanence.nix b/system/impermanence.nix index 2f8600d..b22eab9 100644 --- a/system/impermanence.nix +++ b/system/impermanence.nix @@ -21,12 +21,15 @@ "/etc/ssh/ssh_host_rsa_key.pub" "/etc/machine-id" ]; + }; - users.${username} = { - directories = [ - "." - ]; - }; + # Bind mount entire home directory from persistent storage + # (impermanence doesn't support "." so we do this directly) + fileSystems."/home/${username}" = { + device = "/persistent/home/${username}"; + fsType = "none"; + options = [ "bind" ]; + neededForBoot = true; }; systemd.tmpfiles.rules = [