Sender | Message | Time |
---|---|---|
22 Jun 2024 | ||
13:23:13 | ||
24 Jun 2024 | ||
05:42:56 | ||
Hello everyone, I finally have enough SSDs and machines to make sense of a network-wide Nix cache. My use case is as the following:
I believe Additionally, I am also thinking if maybe I should netboot all my headless SBCs from this NAS. How should/would that work? | 05:54:38 | |
In reply to @thefossguy:matrix.orgFor the netboot, diregarding how you get the kernel/initrd to the SBC, the rootfs must exist somewhere, your options are tmpfs or nfs. What you could do is only keep /boot on each SBC and then have it mount /nix/store over nfs, and tmpfs on / | 06:15:10 | |
That would get you almost complete netboot but you dont have to bother with ipxe and such. The wear imposed on the sdcard by keeping /boot there is minimal and you already have to put the ipxe bootloader somewhere so might as well keep boot there | 06:16:25 | |
ack | 06:24:56 | |
08:37:05 | ||
27 Jun 2024 | ||
techknowlogick is looking into implementing a nix caching story for gitea | 15:39:57 | |
https://github.com/go-gitea/gitea/issues/29824 | 15:40:03 | |
| 15:40:19 | |
wondering if someone can chime in on that issue | 15:40:24 | |
| 15:40:39 | |
28 Jun 2024 | ||
18:09:07 | ||
4 Jul 2024 | ||
15:46:20 | ||
6 Jul 2024 | ||
11:03:12 | ||
9 Jul 2024 | ||
16:49:08 | ||
11 Jul 2024 | ||
Are there any docs for setting up and gcing a small personal cache, I have a Homeserver on nix that's available via ssh and id like to use it as cache server for personal needs | 16:25:40 | |
12 Jul 2024 | ||
Ronny: one route is to just use it as a remote build machine https://nix.dev/manual/nix/2.18/advanced-topics/distributed-builds. Nix would automatically cache the builds in the nix store of the machine. you can nix build with --keep-outputs to build up the roots you want to keep. | 00:09:00 | |
13 Jul 2024 | ||
In reply to @samrose:matrix.orgim building on one of my higher powered systems and have the cache on my rpi sytem (that shouldn't build) - i want to work out something where a github action pushes to the cache eventually | 10:19:31 | |
14 Jul 2024 | ||
Ronny: that is explained in https://nix.dev/manual/nix/2.22/command-ref/new-cli/nix3-copy you just have to figure out how to securely network to your machine. | 10:21:20 | |
In reply to @samrose:matrix.orgthis lacks all details on gc-proofing and/or lifecycle management - copied closures dont exactly help with controlling how one reclaims space | 10:31:16 | |
have you looked at attic so far? | 11:41:25 | |
it is a binary cache implementation that uses S3-compatible backends | 11:42:13 | |
https://github.com/zhaofengli/attic | 11:42:15 | |
gc is documented here https://docs.attic.rs/tutorial.html#garbage-collection | 11:42:34 | |
i'm using it with a local garage setup, and the same would likely work with minio, or some hosted setup | 11:44:02 | |
if you're interested I can share the config that I run on my local rock5b | 11:50:09 | |
i have taken a look at attic, however as my server has also the largest deploy set, i was hoping to enable using its store directly as a cache instead of creating a extra deployed service (when ssh and filesystem are kinda there) | 13:14:43 | |
you can use harmonia to serve your /nix/store | 13:18:33 | |
* you can use harmonia to serve your /nix/store | 13:18:44 |