From e8fea350994cea2c9e88e913bf44d9fb5ec3b793 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 21 Nov 2026 02:23:56 +0000 Subject: configs: fail the services without the home drive RequiresMountsFor only requires home.mount if there is one, which the fc-home generator only makes with the drive (--home): without it, the services started anyway, with their state on the tmpfs. Now they assert that /home is a mount point, and fail otherwise. --- configs/claude.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configs/claude.nix') diff --git a/configs/claude.nix b/configs/claude.nix index 683e287..8f02532 100644 --- a/configs/claude.nix +++ b/configs/claude.nix @@ -61,6 +61,9 @@ in wants = [ "network-online.target" ]; after = [ "network-online.target" "systemd-tmpfiles-setup.service" ]; unitConfig.RequiresMountsFor = "/home/claude"; + # Without the drive, there's no mount to require, and /home is on the + # tmpfs: fail rather than keep the state there. + unitConfig.AssertPathIsMountPoint = "/home"; path = [ claude-code config.nix.package -- cgit v1.3.1