nullclaw: add utils, nix eval cache tmpfs

This commit is contained in:
illustris
2026-03-09 09:47:08 +05:30
parent 9de1c4f85e
commit 5c5fdff4d4
2 changed files with 19 additions and 14 deletions

16
flake.lock generated
View File

@@ -162,18 +162,14 @@
"zig2nix": "zig2nix" "zig2nix": "zig2nix"
}, },
"locked": { "locked": {
"lastModified": 1772597975, "lastModified": 1772682890,
"narHash": "sha256-IQaA9YwuoCMCCIReN0e9c0QaxsaqpCqrkR6Y7oAgB34=", "narHash": "sha256-5Yi88YzbMMbig4xJew46FJenGD11nJrqRcrdtmk8BmI=",
"owner": "illustris", "path": "/home/illustris/src/nullclaw",
"repo": "nullclaw", "type": "path"
"rev": "bdeba3af06a182516ded2f77384416474df12f97",
"type": "github"
}, },
"original": { "original": {
"owner": "illustris", "path": "/home/illustris/src/nullclaw",
"ref": "sqlite-on-9p", "type": "path"
"repo": "nullclaw",
"type": "github"
} }
}, },
"root": { "root": {

View File

@@ -12,7 +12,8 @@
url = "github:microvm-nix/microvm.nix"; url = "github:microvm-nix/microvm.nix";
inputs.nixpkgs.follows = "nixpkgs"; 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"; nix-mcp.url = "github:illustris/nix-mcp";
}; };
@@ -154,14 +155,22 @@
mem = 4096; mem = 4096;
extraModules = [({ pkgs, ... }: { extraModules = [({ pkgs, ... }: {
imports = [ self.nixosModules.storeOverlay ]; imports = [ self.nixosModules.storeOverlay ];
fileSystems."/root" = { fileSystems = {
"/root" = {
device = "/var/lib/nullclaw"; device = "/var/lib/nullclaw";
options = [ "bind" ]; options = [ "bind" ];
}; };
"/root/.cache/nix" = {
fsType = "tmpfs";
options = [ "size=1G" "mode=0700" ];
};
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
nullclaw.packages.${system}.default nullclaw.packages.${system}.default
tmux tmux
git git
strace
bpftrace
]; ];
})]; })];
}; };