summaryrefslogtreecommitdiffstats
path: root/configs/claude.nix
diff options
context:
space:
mode:
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";