!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

763 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.162 Servers

Load older messages


SenderMessageTime
6 Dec 2024
@p14:matrix.orgp14
In reply to @joerg:thalheim.io
Do you know what change introduces this?
I do not, sorry, my time budget blew and I am now afk for a bit. Seems master is ok but not staging.
16:16:50
@joerg:thalheim.ioMic92Maybe give a heads up in the staging channel at least.16:17:23
@joerg:thalheim.ioMic92The pull request is only improving the error message, but not fixing the root cause, which is on the nixpkgs side.16:17:55
@0lach:matrix.orgLach I believe I have once fixed illegal utf8 logs, it is not correct to skip those lines entirely: https://github.com/NixOS/nix/pull/5160 17:46:50
@0lach:matrix.orgLach There would always be those errors on nixpkgs side, because builder scripts aren't forced to output utf8-only logs, yet nix is converting those logs to json, and json library only expects utf8 strings 17:50:02
7 Dec 2024
@rhelmot:matrix.orgrhelmotIs it even possible to use garbage collection with a diverted store? No matter what I do, gc roots get created as /nix/store symlinks and the garbage collector deletes out of /nix/store03:47:06
@upidapi:matrix.orgupidapi joined the room.16:59:55
@cy:cything.iocy joined the room.20:58:08
8 Dec 2024
@marinelli:matrix.org@marinelli:matrix.org left the room.09:35:00
@tomberek:matrix.orgtomberekThat feels like a bug.20:10:19
9 Dec 2024
@joerg:thalheim.ioMic92 Lach: isn't json supposed to be either unicode or ascii with escaped chars? 12:16:33
@0lach:matrix.orgLach Ascii with escaped chars shouldn't include invalid unicode sequences (Unpaired surrogates are allowed at max), yet builder scripts might output invalid unicode sequences, and nix worker protocol requires this output to be encoded to json, which is impossible in general, invalid utf-8 sequences must be replaced 12:48:07
10 Dec 2024
@sandro:supersandro.deSandro 🐧 joined the room.15:24:22
@sandro:supersandro.deSandro 🐧👉️👈️ Can I motivate someone to fix https://github.com/NixOS/nix/issues/8074 ? 🥺15:25:14
11 Dec 2024
@cy:cything.iocy changed their profile picture.05:09:28
@k_t.666:matrix.orgkat ⛧ they/them joined the room.12:05:42
@marijan:matrix.orgmarijan changed their profile picture.14:20:17
@p14:matrix.orgp14

I'm having an issue that in my org, the simple invocation nix build nixpkgs#hello fails. The github API requests fail unless authenticated, since there are a large number of users going through the same IP address. Of course the 'obvious' solution is to get everyone to authenticate, but this creates problems on remote machines of where to store the token.

I'd like instead to point flake:nixpkgs at an internal mirror (via nix registry pin or equivalent), but AFAICT there is no efficient way to do this? The reason it's efficient for github is the existence of the download API which is special cased to github. Is there a way to achieve the same effect?

I've tried for example to point it at a local git repository, but this results in nix trying to clone the nixpkgs git repository, which is incredibly expensive in time, CPU time, disk and bandwidth.

How do others handle this, or does everyone simply supply a github token? I'm just not sure this is a scalable approach, and it would be nice to drop the requirement of github being visible to the machine invoking nix.

14:56:05
@sandro:supersandro.deSandro 🐧http_proxy envs and the like?14:57:34
@sandro:supersandro.deSandro 🐧or just copy the downloaded store entry to the machine14:57:48
@sandro:supersandro.deSandro 🐧the one place where this happens to me, I just have tokens 14:58:02
@p14:matrix.orgp14I'm not clear how a http proxy helps matters? Wouldn't that again have the effect of concentrating requests to go through one IP and requiring that they're authenticated? Since it uses https I don't see how the proxy could even provide the authentication if I was inclined to go that route.14:59:36
@p14:matrix.orgp14Having a store on the machine could work, but I need to persuade nix not to query the github API at all.14:59:55
@p14:matrix.orgp14(a store = a copy of a nixpkgs tree)15:00:08
@p14:matrix.orgp14But there is still the secondary problem of user flakes: those will contain references to nixpkgs, and those references also need to be acquired. This also generates a similar problem that needs solving15:00:44
@sandro:supersandro.deSandro 🐧 I personally follow nixpkgs on every flake input 15:01:45
@p14:matrix.orgp14 I suppose in this latter case, at if the user has a locked flake, it's possible (maybe?) to substitute the nixpkgs tree from a substituter, which would be acceptable. But that's only fine so long as they have a locked flake and breaks if they want to nix flake update. 15:01:49
@p14:matrix.orgp14Right, but nixpkgs will still be locked into the flake as github:nixos/nixpkgs, no?15:02:02
@sandro:supersandro.deSandro 🐧yeah, basically15:02:12
@p14:matrix.orgp14Really I need some way of telling nix 'these things are available from this other place'; and for nix to query for example what the latest commit is from that place, and not github.15:03:30

Show newer messages


Back to Room ListRoom Version: 6