From 5c5fdff4d46c0b6454bb2276d64ae4988f990211 Mon Sep 17 00:00:00 2001 From: illustris Date: Mon, 9 Mar 2026 09:47:08 +0530 Subject: [PATCH] nullclaw: add utils, nix eval cache tmpfs --- flake.lock | 16 ++++++---------- flake.nix | 17 +++++++++++++---- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/flake.lock b/flake.lock index eeeca03..83a380e 100644 --- a/flake.lock +++ b/flake.lock @@ -162,18 +162,14 @@ "zig2nix": "zig2nix" }, "locked": { - "lastModified": 1772597975, - "narHash": "sha256-IQaA9YwuoCMCCIReN0e9c0QaxsaqpCqrkR6Y7oAgB34=", - "owner": "illustris", - "repo": "nullclaw", - "rev": "bdeba3af06a182516ded2f77384416474df12f97", - "type": "github" + "lastModified": 1772682890, + "narHash": "sha256-5Yi88YzbMMbig4xJew46FJenGD11nJrqRcrdtmk8BmI=", + "path": "/home/illustris/src/nullclaw", + "type": "path" }, "original": { - "owner": "illustris", - "ref": "sqlite-on-9p", - "repo": "nullclaw", - "type": "github" + "path": "/home/illustris/src/nullclaw", + "type": "path" } }, "root": { diff --git a/flake.nix b/flake.nix index b7e5d46..5fa450d 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,8 @@ url = "github:microvm-nix/microvm.nix"; inputs.nixpkgs.follows = "nixpkgs"; }; - nullclaw.url = "github:illustris/nullclaw?ref=sqlite-on-9p"; + # nullclaw.url = "github:illustris/nullclaw?ref=sqlite-on-9p"; + nullclaw.url = "path:///home/illustris/src/nullclaw"; nix-mcp.url = "github:illustris/nix-mcp"; }; @@ -154,14 +155,22 @@ mem = 4096; extraModules = [({ pkgs, ... }: { imports = [ self.nixosModules.storeOverlay ]; - fileSystems."/root" = { - device = "/var/lib/nullclaw"; - options = [ "bind" ]; + fileSystems = { + "/root" = { + device = "/var/lib/nullclaw"; + options = [ "bind" ]; + }; + "/root/.cache/nix" = { + fsType = "tmpfs"; + options = [ "size=1G" "mode=0700" ]; + }; }; environment.systemPackages = with pkgs; [ nullclaw.packages.${system}.default tmux git + strace + bpftrace ]; })]; };