update with store composition

This commit is contained in:
Yureka 2024-07-22 01:55:27 +02:00
parent a0914775d1
commit 0fe57595bb
2 changed files with 36 additions and 9 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { { pkgs, lib, ... }: {
fileSystems."/nvme" = { fileSystems."/nvme" = {
device = "/dev/nvme0n1"; device = "/dev/nvme0n1";
fsType = "ext4"; fsType = "ext4";
@ -8,6 +8,7 @@
security.acme.defaults.email = "experiments@lahfa.xyz"; security.acme.defaults.email = "experiments@lahfa.xyz";
services.tvix-binary-cache = { services.tvix-binary-cache = {
enable = true; enable = true;
enableNginx = true; enableNginx = true;
nginx = { nginx = {
clientMaxBodySize = "50G"; clientMaxBodySize = "50G";
@ -15,12 +16,38 @@
}; };
caches = { caches = {
forkos = { forkos = {
port = 8000; grpcListenAddress = "[::1]:5000";
remote-path-info-service-addr = "nix+https://bagel-cache.s3-web.delroth.net"; narBridgeListenAddress = "[::1]:8000";
tvix-daemon-composition.pathinfoservices = {
sled = {
type = "sled";
is_temporary = false;
path = "/var/lib/tvix-daemon-forkos/pathinfos.sled";
};
default = lib.mkForce {
type = "nix";
url = "nix+https://bagel-cache.s3-web.delroth.net";
blobservice = "default";
directoryservice = "objectstore";
};
};
}; };
cno = { cno = {
port = 8001; grpcListenAddress = "[::1]:5001";
remote-path-info-service-addr = "nix+https://cache.nixos.org?trusted-public-keys=cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="; narBridgeListenAddress = "[::1]:8001";
tvix-daemon-composition.pathinfoservices = {
sled = {
type = "sled";
is_temporary = false;
path = "/var/lib/tvix-daemon-cno/pathinfos.sled";
};
default = lib.mkForce {
type = "nix";
url = "nix+https://cache.nixos.org?trusted-public-keys=cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=";
blobservice = "default";
directoryservice = "objectstore";
};
};
}; };
}; };
}; };

View file

@ -4,12 +4,12 @@
"type": "Git", "type": "Git",
"repository": { "repository": {
"type": "Git", "type": "Git",
"url": "https://git.dgnum.eu/mdebray/binary-cache.git" "url": "https://git.lix.systems/yu-re-ka/binary-cache"
}, },
"branch": "master", "branch": "master",
"revision": "ca91cdb33b14cea9221c21dba836132fdc5d4956", "revision": "608f8008ebd5e7a535544cbc8df18ea4a64bb66a",
"url": null, "url": null,
"hash": "sha256-JKwi18fjiM5Fz/+qPsixrHKYAjTDPZiI8t8gsiP2Zac=" "hash": "sha256-yCA/QwWcwOs9dtVxHaHFCu2LNMOhhyUeZG1XpaZrNFE="
}, },
"nixpkgs": { "nixpkgs": {
"type": "Channel", "type": "Channel",
@ -19,4 +19,4 @@
} }
}, },
"version": 4 "version": 4
} }