summaryrefslogtreecommitdiffstats
path: root/configs/claude.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-21 02:21:50 +0000
committertv <tv@krebsco.de>2026-11-21 04:08:05 +0100
commitcac7bb96306432ebd5a012570c05e81706dbca26 (patch)
tree11b3cf471d51fdaa431924b3f4758a7df4612000 /configs/claude.nix
parent24ed0e0430d47923961d455889ee77c4f7ed7950 (diff)
configs: require --home, with hermes' home there, like claude's
Both layers set fc.home.required, so the run script refuses to start the guest without --home, instead of keeping the state on the tmpfs. hermes' home (stateDir) moves from the store drive to /home/hermes, where claude's is, too: the store drive is for the store, which should be fine to throw away, and the home drive keeps what can't be. Like claude's, the user's home doesn't get created with the user, as /home isn't mounted yet then; the module's tmpfiles create it, and hermes' services require the mount. To keep the existing state, once, with both drives attached: mv /nix/.rw-store/hermes /home/hermes
Diffstat (limited to 'configs/claude.nix')
-rw-r--r--configs/claude.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/configs/claude.nix b/configs/claude.nix
index db74ce7..f29ea2f 100644
--- a/configs/claude.nix
+++ b/configs/claude.nix
@@ -4,7 +4,7 @@
# Once, as root: runuser -l claude -c 'claude auth login', then
# claude-attach and answer Remote Control's questions there (enable it,
# trust ~/src). The state is in /home/claude, i.e. on the run script's
-# --home drive.
+# --home drive, which is required.
{ config, lib, pkgs, ... }:
let
tmux = "${pkgs.tmux}/bin/tmux -S /run/claude/tmux";
@@ -33,6 +33,8 @@ in
{
nixpkgs.config.allowUnfreePredicate = pkg: lib.getName pkg == "claude-code";
+ fc.home.required = true;
+
users.users.claude = {
isNormalUser = true;
home = "/home/claude";