Rework Claude Code config in sandboxed workspaces
Remove credential passing to sandboxes (didn't work well enough). Move onboarding config init from host-side setup into base.nix so each workspace initializes its own Claude config on first boot. Wrap claude command in VM and Incus workspaces to always skip permission prompts.
This commit is contained in:
@@ -47,16 +47,10 @@ in
|
||||
hostPath = "/home/googlebot/sandboxed/${name}/ssh-host-keys";
|
||||
isReadOnly = false;
|
||||
};
|
||||
# Per-workspace claude config for isolated session data
|
||||
"/home/googlebot/claude-config" = {
|
||||
hostPath = "/home/googlebot/sandboxed/${name}/claude-config";
|
||||
isReadOnly = false;
|
||||
};
|
||||
# Share credentials from host (read-only)
|
||||
"/home/googlebot/claude-config/.credentials.json" = {
|
||||
hostPath = "/home/googlebot/.claude/.credentials.json";
|
||||
isReadOnly = true;
|
||||
};
|
||||
};
|
||||
|
||||
config = { config, lib, pkgs, ... }: {
|
||||
|
||||
Reference in New Issue
Block a user