Skip to content

Commit 94d06f4

Browse files
committed
feat: add cache to flake
1 parent 367a463 commit 94d06f4

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

DEVELOPMENT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ sha256sum ./result/bin/*
222222

223223
- **Updating Dependencies**: If you notice dependencies are out of date or a new tool has been added to the flake, run `nix flake update` to refresh the `flake.lock` file.
224224
- **Command Not Found**: Ensure you have entered the shell (e.g., `nix develop`). Some tools like `mprocs` or `bitcoind` are only available in the `regtest` shell.
225+
- **Binary Cache**: The flake advertises the `cashudevkit` Cachix cache to speed up local builds and shell setup. If your Nix installation does not accept flake-provided cache settings automatically, the project will still work, but dependencies may build locally and take longer.
225226
- **Cache Issues**: If you suspect the environment is not reflecting recent flake changes, you can force a re-evaluation with `nix flake check`.
226227
- **Persistent Data**: The local PostgreSQL instance stores data in the `.pg_data/` directory. If you want to reset your database completely, stop the database and delete this directory.
227228

flake.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
{
22
description = "CDK Flake";
33

4+
nixConfig = {
5+
extra-substituters = [
6+
"https://cashudevkit.cachix.org"
7+
];
8+
extra-trusted-public-keys = [
9+
"cashudevkit.cachix.org-1:zFKdvMiTllKWxIFNTjXgisZsOFufmaZXjWJNcmc8r+4="
10+
];
11+
};
12+
413
inputs = {
514
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
615
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";

0 commit comments

Comments
 (0)