goibhniu has quit [(Ping timeout: 240 seconds)]
jtojnar has joined joined #nixos-dev
mbrgm has quit [(Ping timeout: 248 seconds)]
mbrgm has joined joined #nixos-dev
phreedom has quit [(Remote host closed the connection)]
MichaelRaskin has quit [(Quit: MichaelRaskin)]
goibhniu has joined joined #nixos-dev
JosW has joined joined #nixos-dev
FRidh has joined joined #nixos-dev
FRidh has quit [(Client Quit)]
FRidh has joined joined #nixos-dev
mingc has quit [(Quit: Ping timeout (120 seconds))]
mingc has joined joined #nixos-dev
FRidh has quit [(Ping timeout: 264 seconds)]
FRidh has joined joined #nixos-dev
LnL has quit [(Ping timeout: 248 seconds)]
<fadenb> Some people mentioned they want to join up for dinner the evening before NixCon. I reserved some seats at Augustiner-Keller, https://doodle.com/poll/z63wcs8z4vtcbdhv
<fadenb> fpletz ^
FRidh has quit [(Ping timeout: 240 seconds)]
LnL has joined joined #nixos-dev
goibhniu has quit [(Ping timeout: 246 seconds)]
FRidh has joined joined #nixos-dev
<Profpatsch> fadenb: Awesome!
<Profpatsch> I’ll see if I can make it.
<Profpatsch> fadenb: Friday?
<fadenb> Profpatsch: yep
<Profpatsch> Should be possible. o/
<fadenb> :)
<Profpatsch> Quickcheck, but for nix expressions.
<fpletz> fadenb: thanks!
cransom has quit [(Quit: WeeChat 1.7)]
cransom has joined joined #nixos-dev
FRidh has quit [(Ping timeout: 252 seconds)]
FRidh has joined joined #nixos-dev
<Profpatsch> Multi-Arity functions! a: if a < 5 then a else b: a + b
<Profpatsch> Dependent Multi-Arity functions!
<Profpatsch> So much FUN
<gchristensen> oh wt_f_
<Profpatsch> Oh the _p_o_s_s_i_b_i_l_i_e_s
goibhniu has joined joined #nixos-dev
<regnat[m]> Profpatsch: Multi-Arity functions! a: if a < 5 then a else b: a + b <-- Oh god, I never thought of putting this in the "why typing the whole nix lang is insanely hard" part when doing presentations on it
<Profpatsch> regnat[m]: You are very much welcome. xoxo
<Profpatsch> Fun fact of the day: lib.take is not lazy. It uses the length of the list m(
<copumpkin> lists in general do not have lazy spines in nix
FRidh has quit [(Ping timeout: 264 seconds)]
<Profpatsch> copumpkin: In my case the list is infinite anyway.
<copumpkin> you can still pretend to have an infinite list with something like `let x = { head = 5; tail = x; } in x`
<Profpatsch> Why actually build an intermediate list functor value when you can represent it as variadic lambda?~~~
<Profpatsch> this stuff is gud
<copumpkin> lol
<Profpatsch> This must be the most elaborate list concatenation I’ve done yet.
* Profpatsch starts patting his shoulder
<copumpkin> lol
<copumpkin> you'll be at nixcon, right?
<Profpatsch> aye
jtojnar_ has joined joined #nixos-dev
jtojnar has quit [(Read error: Connection reset by peer)]
jtojnar_ has quit [(Remote host closed the connection)]
goibhniu has quit [(Ping timeout: 248 seconds)]
MichaelRaskin has joined joined #nixos-dev
<copumpkin> niksnut: you seen many of these? error: AWS error fetching ‘a0ns0fbflkf485l9lsx7zv03b25hy61h.narinfo’: Unable to parse ExceptionName: InternalError Message: We encountered an internal error. Please try again.
<copumpkin> from 1.12
<copumpkin> I'm thinking I might need to tinker with the AWS retry policy too :D
<copumpkin> it even asks me to try again :D
<copumpkin> should_retry = error_msg.contains("Please try again")
<gchristensen> haha
<gchristensen> // it did ask politely
<copumpkin> indeed!
<dtzWill> xD
goibhniu has joined joined #nixos-dev
<aminechikhaoui> Howdy folks, anyone knows what's the cmd to sync a local nix store with an s3 binary cache store with nix 1.12 ?
<copumpkin> sync? there's `nix copy` but that generally goes one direction, and will only copy closure of paths you ask it to
<LnL> nix 1.12 has native support for s3 with nix copy IIRC
<copumpkin> yeah
<aminechikhaoui> hm I probably can do a mix of nix path-info --all and nix copy then
<copumpkin> oh I didn't know about nix path-info --all
<copumpkin> but yeah, `nix copy --to s3://foo <paths>`
<copumpkin> up until recently you had to pass in -r if you wanted it to copy the full closure
<copumpkin> now it'll do it by default
<aminechikhaoui> nice
<aminechikhaoui> copumpkin: any idea which nix rev fixed the -r thingy ? got 1.12pre5619_346aeee1 in my machine
<copumpkin> don't recall, but it was in the past couple of weeks
<copumpkin> nixUnstable in nixpkgs-unstable now defaults to -r
<aminechikhaoui> ok thanks
zraexy has quit [(Ping timeout: 255 seconds)]
infinisil has quit [(Quit: ZNC 1.7.x-git-unknown - https://znc.in)]
infinisil has joined joined #nixos-dev
<copumpkin> is there some sort of nix-instantiate --eval --json --strict that also builds stuff as needed?
<copumpkin> like if I have an attrset that refers to derivations and such
<copumpkin> I want to get the JSON out of it, but I also want the paths in question to be valid
<gchristensen> I think you don't want --eval?
<gchristensen> oh hm
<copumpkin> I think --json and --strict both come from --eval
<gchristensen> yeah
<copumpkin> the issue is that there doesn't seem to be a reliable way to get nix-build to build the same thing
<copumpkin> so if it's a simple structure, I can do nix-build ... && nix-instantiate --json --eval --strict
<copumpkin> but for anything more complicated I don't think there's any ... I can put above that'll make sure that all the paths returned by nix-instantiate are valid
JosW has quit [(Quit: Konversation terminated!)]
<Dezgeg> make some IFD hack that recurses your json and collects the paths and depends on them?
<gchristensen> this is cool: https://github.com/NixOS/nixpkgs/pull/30777
<MichaelRaskin> Now just to tag your Borg Bot…
<MichaelRaskin> Mentioning, say, chromium…
<MichaelRaskin> Or does it listen only to Approved Serious People?
<copumpkin> Dezgeg: yeah I suppose
<copumpkin> Dezgeg: doesn't even really need to be IFD I guess
<gchristensen> MichaelRaskin: right now, just Approved Serious People. later, A Much Longer List Of Approved Serious People
<hl> What is the state of cross-compilation support in NixOS?
<aminechikhaoui> hm does the nix daemon care about AWS creds being passed to its systemd service environment as env vars
<MichaelRaskin> I would estimate that cross-compilation support in Nixpkgs is uneven.
<copumpkin> aminechikhaoui: not sure, I use instance metadata creds
<copumpkin> hl: best person to answer that is Sonarpulse
<MichaelRaskin> Depends on target, depends on package.
<Dezgeg> hmm yes, maybe instead of generating the json with 'nix-instantiate --json --eval --strict' a simple 'pkgs.writeText (builtins.toJSON myStruct)' would do that
<copumpkin> @Dez
<copumpkin> yeah that's what I'm thinking
* copumpkin experiments
<Sonarpulse> hi
<Sonarpulse> hl nixpkgs or nixos?
<Sonarpulse> bgamari (on #nixos) was working on some basic linux whole-world cross-compilation
<Sonarpulse> but not fully nixos
<copumpkin> @dez
<copumpkin> Dezgeg: that worked :D
<copumpkin> niksnut: omg
<copumpkin> holy shit that's been pending for over a year
<niksnut> actually I have an update to that PR that I haven't pushed yet
<copumpkin> man that review is very imperative :P
<copumpkin> "do X, update Y"
<niksnut> to add support for HTTP status code 0
<copumpkin> cool
<niksnut> copumpkin: I don't mind that
<copumpkin> oh I don't either, it's just not common
<niksnut> I just didn't get their comment about timeouts not being retryable
<copumpkin> that'd be amazing to get merged, would resolve the last S3 failures I see
<copumpkin> niksnut: also, did you see https://github.com/NixOS/nixpkgs/pull/30777 ? :)
<niksnut> no
<copumpkin> it's a very important PR :P
<copumpkin> the key part is the bot auto-tagging it with mass-rebuild and mass-darwin-rebuild
<copumpkin> (all thanks to gchristensen)
infinisil has quit [(Read error: Connection reset by peer)]
infinisil has joined joined #nixos-dev
<gchristensen> as a note, the bot will be sporadically available while I make it more robust and get it deployed somewhere proper
* copumpkin is already a bot addict
<Sonarpulse> gchristensen: this is @ bot?
<gchristensen> I'll write more soon, but you @ the bot and list attrs to build
<gchristensen> it'll build them and "approve" the PR with the last 10 lines of build output if it worked, or "comment" on the PR if it didn't
<gchristensen> and a very limited set of people can @-it right now
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
infinisil has joined joined #nixos-dev
infinisil has quit [(Client Quit)]
infinisil has joined joined #nixos-dev
infinisil has quit [(Client Quit)]
infinisil has joined joined #nixos-dev
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
infinisil has joined joined #nixos-dev
infinisil has quit [(Client Quit)]
infinisil has joined joined #nixos-dev
<Sonarpulse> gchristensen: cool!
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
infinisil has joined joined #nixos-dev
goibhniu has quit [(Ping timeout: 248 seconds)]