From 9de1c4f85e560b25a98896ffa41929bafd091818 Mon Sep 17 00:00:00 2001 From: illustris Date: Wed, 4 Mar 2026 09:53:22 +0530 Subject: [PATCH] pass persist dir to nullclaw --- flake.lock | 8 ++++---- flake.nix | 9 ++++++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index bcc7c45..eeeca03 100644 --- a/flake.lock +++ b/flake.lock @@ -162,16 +162,16 @@ "zig2nix": "zig2nix" }, "locked": { - "lastModified": 1772565037, - "narHash": "sha256-ToafgQCwxEmV9W+GIZELupvRFJXHRoLwvfyLHrQCk1g=", + "lastModified": 1772597975, + "narHash": "sha256-IQaA9YwuoCMCCIReN0e9c0QaxsaqpCqrkR6Y7oAgB34=", "owner": "illustris", "repo": "nullclaw", - "rev": "b558b0429ae4c21df0df0c4708d1c1cb6be10b85", + "rev": "bdeba3af06a182516ded2f77384416474df12f97", "type": "github" }, "original": { "owner": "illustris", - "ref": "fix-nix", + "ref": "sqlite-on-9p", "repo": "nullclaw", "type": "github" } diff --git a/flake.nix b/flake.nix index 190025e..b7e5d46 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,7 @@ url = "github:microvm-nix/microvm.nix"; inputs.nixpkgs.follows = "nixpkgs"; }; - nullclaw.url = "github:illustris/nullclaw?ref=fix-nix"; + nullclaw.url = "github:illustris/nullclaw?ref=sqlite-on-9p"; nix-mcp.url = "github:illustris/nix-mcp"; }; @@ -154,12 +154,19 @@ mem = 4096; extraModules = [({ pkgs, ... }: { imports = [ self.nixosModules.storeOverlay ]; + fileSystems."/root" = { + device = "/var/lib/nullclaw"; + options = [ "bind" ]; + }; environment.systemPackages = with pkgs; [ nullclaw.packages.${system}.default tmux + git ]; })]; }; + + crash = {}; }; }; }