summaryrefslogtreecommitdiffstats
path: root/configs/claude.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-21 02:33:55 +0000
committertv <tv@krebsco.de>2026-11-21 04:08:18 +0100
commit2331b50f9c0353ab92e1c15795587f4a1d0dd803 (patch)
tree383a827709a60ff93fa63201e6afe92e2e8e78f4 /configs/claude.nix
parenta06a5d00a7f938fa44cf611bd2509104727960e9 (diff)
configs/claude: require nix
run-firecracker-vm's guests no longer have nix unless they have its nix layer (layers/nix.nix). Claude builds and tries things with it (nix-build, nix-shell), so claude asserts that it's there, as in [ layers/nix.nix configs/claude.nix ], rather than coming up without. With it, the run script requires --store, as before only for the store to persist. hermes doesn't need nix: on its own, its store is read-only.
Diffstat (limited to 'configs/claude.nix')
-rw-r--r--configs/claude.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/configs/claude.nix b/configs/claude.nix
index 9d12210..d421bd2 100644
--- a/configs/claude.nix
+++ b/configs/claude.nix
@@ -19,6 +19,13 @@ in
fc.home.required = true;
+ # For Claude to build and try things with (nix-build, nix-shell), see
+ # the service's path; with it, the run script requires --store.
+ assertions = [{
+ assertion = config.nix.enable;
+ message = "configs/claude.nix needs nix: put run-firecracker-vm's layers/nix.nix into the layers, before it.";
+ }];
+
users.users.claude = {
isNormalUser = true;
# Fixed, for the files on the home drive: users get created anew at