pass persist dir to nullclaw

This commit is contained in:
illustris
2026-03-04 09:53:22 +05:30
parent c829e5451b
commit 9de1c4f85e
2 changed files with 12 additions and 5 deletions

8
flake.lock generated
View File

@@ -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"
}

View File

@@ -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 = {};
};
};
}