!CcTBuBritXGywOEGWJ:matrix.org

NixOS Binary Cache Self-Hosting

143 Members
About how to host a very large-scale binary cache and more51 Servers

Load older messages


SenderMessageTime
7 Aug 2024
@qyliss:fairydust.spaceAlyssa Rosscorrect09:54:54
@quapka4:matrix.orgquapka4 Then a follow up question. I am thinking of having a slow virtual machine with the binary cache that fetches the binaries from much beefier - however, I don't have root there. Can I use the nix-user-chroot or something similar to still build as if I was root and had the access to /nix/store? 09:56:19
@quapka4:matrix.orgquapka4
In reply to @qyliss:fairydust.space
correct
Great, thanks.
09:56:25
@aloisw:kde.orgaloisw
In reply to @quapka4:matrix.org
Then a follow up question. I am thinking of having a slow virtual machine with the binary cache that fetches the binaries from much beefier - however, I don't have root there. Can I use the nix-user-chroot or something similar to still build as if I was root and had the access to /nix/store?
In principle building without root access is possible, but keep in mind that the single-user sandbox currently has some shortcomings that increase the chance for impurities.
10:55:00
@quapka4:matrix.orgquapka4Thanks, I am not aware of that.10:55:34
8 Aug 2024
@ronnypfannschmidt:matrix.orgRonny

Is there a easy Way to have per user profiles on a server with custom gc

I'm trying to simulate sensible gc for a ssh based cache by creating per flake output profiles that gc via older than similar to deployed profiles

13:40:09
@qyliss:fairydust.spaceAlyssa Ross set a profile picture.18:48:41
11 Aug 2024
@joerg:thalheim.ioMic92Just put them in /nix/var/nix/profiles/per-user05:31:22
@joerg:thalheim.ioMic92and have a script that creates/deletes gcroots based on some heuristic.05:31:59
@ronnypfannschmidt:matrix.orgRonny Mic92: aware of any example of pushing a derivation to a server and then adding a g root for it to that server, the concrete mechanics are unclear to me 18:43:26
@joerg:thalheim.ioMic92I would write a shell script that does nix copy and than register like this: https://nix.dev/manual/nix/2.18/package-management/garbage-collector-roots.html18:48:12
12 Aug 2024
@quapka4:matrix.orgquapka4Can nix cache be accessed/exposed only over ssh?13:05:17
@quapka4:matrix.orgquapka4 * Can nix cache be accessed/exposed only over SSH?13:05:58
@quapka4:matrix.orgquapka4 Related to that can nix build of a local flake be fetched from binary cache over SSH? 13:36:58
@quapka4:matrix.orgquapka4This seems to be possible: https://nix.dev/manual/nix/2.18/package-management/ssh-substituter.html13:37:15
13 Aug 2024
@hexa:lossy.networkhexa Zhaofeng Li: attic-server is broken on staging-next, due to the rust 1.80 and its usage of and old version of the time crate. https://hydra.nixos.org/build/269076002 17:46:56
@a-kenji:matrix.orga-kenji
In reply to @hexa:lossy.network
Zhaofeng Li: attic-server is broken on staging-next, due to the rust 1.80 and its usage of and old version of the time crate. https://hydra.nixos.org/build/269076002
I think this is the fix:
https://github.com/NixOS/nixpkgs/pull/334348
18:21:20
14 Aug 2024
@nam3l33ss:matrix.org·☽•Nameless☆•777 · ± joined the room.08:56:37
17 Aug 2024
@nam3l33ss:matrix.org·☽•Nameless☆•777 · ± changed their profile picture.08:27:12
23 Aug 2024
@nam3l33ss:matrix.org·☽•Nameless☆•777 · ± left the room.10:19:07
27 Aug 2024
@oliver.falvai:oliverfalvai.xyzoliver.falvai joined the room.10:52:09
@aloisw:kde.orgaloisw left the room.17:26:56
2 Sep 2024
@r3vx:matrix.orgr3vx joined the room.15:42:02
4 Sep 2024
@lychee:wires.cafelychee joined the room.04:35:00
9 Sep 2024
@pandapip-1:matrix.orgPandapip1 joined the room.03:45:01
16 Sep 2024
@silentlurker:matrix.orgsilentlurker joined the room.19:56:50
17 Sep 2024
@tomherbers:matrix.orgTom (deprecated) joined the room.21:08:57
20 Sep 2024
@pheoxy:matrix.orgPheoxy [AWST/UTC+8] joined the room.13:46:04
24 Sep 2024
@ckie:ckie.devmei 🌒& changed their profile picture.23:23:17
27 Sep 2024
@phanirithvij:matrix.orgloudgolem changed their display name from phanirithvij to loudgolem.14:38:09

Show newer messages


Back to Room ListRoom Version: 10