sphalerite changed the topic of #nixos-dev to: NixOS Development (#nixos for questions) | NixOS stable: 20.03 ✨ | 20.09 ZHF: https://discourse.nixos.org/t/nixos-20-09-zero-hydra-failures/8928 | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html | https://r13y.com | 20.03 RMs: worldofpeace, disasm; 20.09: worldofpeace, jonringer | https://logs.nix.samueldr.com/nixos-dev
<gchristensen> I'm a little concerned by the unsafeDiscardStringContext here: https://github.com/NixOS/nixpkgs/pull/95629 I don't understand why it is used. any thoughts?
<{^_^}> #95629 (by zowoq, 5 weeks ago, merged): nixos/{containers,cri-o,podman}: move copyFile to nixos/lib/utils
tilpner_ has joined #nixos-dev
<samueldr> it should at least have been renamed at the same time
<samueldr> it looks like it's as it says on the tin: cut a direct dependency on the source package of that software...
<samueldr> ... but maybe the solution is to install that source file in the package?
<gchristensen> and string context doesn't do what it seems the author thinks it does?
<samueldr> not sure about that
<gchristensen> since the string context is carried to the drv anyway
<samueldr> at the very least, if it's wrong, it's not new code
tilpner has quit [Ping timeout: 260 seconds]
tilpner_ is now known as tilpner
<samueldr> not that it makes it better
<gchristensen> yeah, but now it is elevated to lib -- more serious than weird code deep somewhere in a module
<samueldr> I'm also confused at the lack of explanation in the PR
<cole-h> Not to dogpile, but I thought self-merging was frowned upon.
<samueldr> I don't think it is really, here
<samueldr> I mean, I don't think it's forwned upon, and in this instance it was open for a full month
<cole-h> Oh, OK
<cole-h> Thanks for the correction
<samueldr> (but it is better if it's not a self-merge I guess)
<samueldr> so copyFile was added first (in podman) by adis//bladis
* samueldr looks for other instances
<cole-h> I'll stop silently judging people for it, then :P
<samueldr> oh, you can have your own ethics about it :)
<samueldr> and it's a scale
<samueldr> oops, didn't mean to copy links from zowoq's fork
<samueldr> nothing about the implementation in #85604 or #86634
<{^_^}> https://github.com/NixOS/nixpkgs/pull/85604 (by adisbladis, 22 weeks ago, merged): nixos/virtualisation.podman: Init module
<{^_^}> https://github.com/NixOS/nixpkgs/pull/86634 (by zowoq, 20 weeks ago, merged): nixos/cri-o: copy upstream config
alp has quit [Ping timeout: 272 seconds]
<samueldr> we don't have a pkgsCross target for mips, right?
<samueldr> oh, kind of, there's one for ben-nanonote which is what I wanted to look at
<samueldr> and it doesn't evaluate, which tells me all I needed to know
<sorear> I tried to set up a cross-compiler to mips64 BE last week and failed
<samueldr> in my particular case it was about looking to see if the 8 year old derivation for a non-mainline u-boot still built
<samueldr> unless someone has been happily running native MIPS Nixpkgs up to today, it probably means it's been abandoned for long enough
<samueldr> *and* is the last one which doesn't use mainline u-boot
rajivr has joined #nixos-dev
ris has quit [Ping timeout: 258 seconds]
disasm has quit [Quit: WeeChat 2.0]
disasm has joined #nixos-dev
<ryantm> worldofpeace: Jan Tojnar Do we need to skip updates to gnome packages for 3.38 ?
<ryantm> r-ryantm updates*
cole-h has quit [Quit: Goodbye]
<worldofpeace> ryantm: I think I saw in nixpkgs-update that Jan committed to re-add GNOME to Skiplist?
<worldofpeace> if not, yes we need to skip major updates
orivej has joined #nixos-dev
niksnut has joined #nixos-dev
orivej has quit [Ping timeout: 260 seconds]
xwvvvvwx- has joined #nixos-dev
xwvvvvwx has quit [Ping timeout: 256 seconds]
xwvvvvwx- is now known as xwvvvvwx
saschagrunert has joined #nixos-dev
justanotheruser has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-dev
<gchristensen> what does the "require" attribute do in the module system?
<niksnut> the same as imports
<gchristensen> cool
orivej has quit [Ping timeout: 256 seconds]
<gchristensen> thanks, niksnut :)
ehmry has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
ehmry has joined #nixos-dev
symphorien[m] has left #nixos-dev ["User left"]
<gchristensen> zimbatm: it looks like you mistakenly pushed a cherry-pick directly to the nixos-* channel branch, instead of the release branch
<gchristensen> we probably need to re-cherry pick that to the release branch and then force-push to nixos-20.09
<gchristensen> we can't trivially prevent this, though we could possibly have the channel updater script add a status to the commit, and require that status commit on pushes for that branch
<infinisil> Wait shouldn't the nixos-* branches be protected?
<infinisil> Hm though I'm not sure what they are protected against, maybe just force pushes
<gchristensen> they are, but if you allow anyone to push, admins can push
<infinisil> Ahh
<gchristensen> (and the channel update account can push)
<gchristensen> gotta run -- hopefully someone can decide the right thing to do and do it :)
NinjaTrappeur has quit [Quit: WeeChat 2.9]
NinjaTrappeur has joined #nixos-dev
<jtojnar> ryantm: yeah, I re-added it few days ago, perhaps the bot just was not deployed since?
NinjaTrappeur has quit [Quit: WeeChat 2.9]
NinjaTrappeur has joined #nixos-dev
NinjaTrappeur has quit [Quit: WeeChat 2.9]
NinjaTrappeur has joined #nixos-dev
NinjaTrappeur has quit [Client Quit]
NinjaTrappeur has joined #nixos-dev
NinjaTrappeur has quit [Quit: WeeChat 2.9]
NinjaTrappeur has joined #nixos-dev
NinjaTrappeur has quit [Client Quit]
NinjaTrappeur has joined #nixos-dev
<gchristensen> not sure if you ever played or not, but pretty cool :P
<Mic92> sphalerite: niksnut worldofpeace spacekookie rfc steering meeting in less than than 10min
<spacekookie> Mic92: hey I won't be able to make it today. Sorry for being so short notice
orivej has joined #nixos-dev
<sphalerite> infinisil: do you want to announce FCP for https://github.com/NixOS/rfcs/pull/72 ?
<{^_^}> rfcs#72 (by mboes, 10 weeks ago, open): [RFC 0072] Switch to CommonMark for documentation
shlevy has quit [Ping timeout: 240 seconds]
<rajivr> When using nix flakes how can I can convert something like `imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];` into a "pure" form?
<arianvp> rajivr: nixos modules system passes modulesPath as an argument
<niksnut> write something like: nixosConfiguration.foo = nixpkgs.lib.nixosSystem { modules = [ nixpkgs.nixosModules.notDetected ... ]; };
<arianvp> though idk if modulesPath is something we want to keep in flakes world though :P
<arianvp> niksnut: I suppose you want to expose each module as a proper attribute in the future?
<arianvp> { modulesPath } : { imports = [ (modulesPath + "/profiles/installation-device.nix") ]
<arianvp> is what I've been using
<niksnut> arianvp: yes
<rajivr> I am running into non-pure code in home-manager. Any idea on how to convert this into pure code? https://github.com/nix-community/home-manager/blob/master/modules/modules.nix#L211
<rajivr> Also thanks a lot for the earlier reply.
AlwaysLivid has joined #nixos-dev
<ajs124> rajivr: shouldn't this not be called when home.stateVersion is 20.09 or higher? if so, just set the state version to that.
<ajs124> what could go wrong?
<rajivr> ajs124 Oh. I am on 20.03 for my nixpkgs. `flake.nix` was only available on `home-manager` master, so I decided to switch to that only for `home-manager`. That is how I ended up with the error.
<niksnut> gchristensen: hm never heard of it
<aminechikhaoui> niksnut do you know off hand what would be the major differences between aws s3 cp of a nar file and what the nix s3 client does ? I assume multi-part download won't happen from awscli unless the Etag shows muti parts ?
<aminechikhaoui> I got a colleague having really slow nix copies using nix-store -r but trying the aws s3 cp of the same nar file is pretty quick
<aminechikhaoui> so that was a bit odd
<niksnut> I don't know of any differences
<niksnut> other than that we're using the c++ library
<aminechikhaoui> niksnut I thought maybe there was connection timeouts which I've seen with some people before but this one I haven't seen any warnings like that so quite mysterious
<zimbatm> gchristensen: oh no, sorry
<gchristensen> no worries :) it is an easy mistake to make
<zimbatm> is it blocking the channel publication?
<gchristensen> yeah, channels can't move forward because nixos-20.09 can't fast-forward to release-20.09
<gchristensen> so I think we need to force-push nixos-20.09
<zimbatm> agreed, let me remove my cherry-pick
<zimbatm> I need to disable the branch protection temporarily
<zimbatm> ok the cherry-pick has been removed. I also updated the branch protection so it also applies to admins.
<gchristensen> oh you can do that?
<gchristensen> nice
<gchristensen> zimbatm??
<gchristensen> zimbatm++ (whoops, new keyboard layout)
<{^_^}> zimbatm's karma got increased to 18
<zimbatm> you scared me :)
noonien has quit [Quit: Connection closed for inactivity]
<Profpatsch> gchristensen: the ofborg darwin checks haven’t been working for me for 2–3 months. I’m guessing a known problem? Do we want to remove them?
orivej has quit [Ping timeout: 258 seconds]
<Profpatsch> They are just forever queued
<gchristensen> no macs :(
<Profpatsch> Just for ofborg or also none for hydra?
<Profpatsch> We do have a few macbooks flying around here in the office
<Profpatsch> (That nobody uses)
Cale has quit [Ping timeout: 272 seconds]
<LnL> yeah, mine died and it had been the only one for a while
<ryantm> Jan Tojnar: thanks, I didn't notice. I've deployed it now.
Cale has joined #nixos-dev
justanotheruser has joined #nixos-dev
<worldofpeace> spacekookie: niksnut Mic92 I hope you all saw my email
<Mic92> worldofpeace: yes. we will call out for new rfc steering comittee leader
<Mic92> It was due in November anyway
<worldofpeace> oh okay, I didn't know it was due for November 😸
cole-h has joined #nixos-dev
urkk has quit [Ping timeout: 260 seconds]
adisbladis has left #nixos-dev ["ERC (IRC client for Emacs 28.0.50)"]
rajivr has quit [Quit: Connection closed for inactivity]
ris has joined #nixos-dev
__Sander__ has joined #nixos-dev
bennofs has joined #nixos-dev
orivej has joined #nixos-dev
bennofs_ has quit [Ping timeout: 240 seconds]
tokudan has quit [Remote host closed the connection]
bennofs has quit [Ping timeout: 258 seconds]
tokudan has joined #nixos-dev
<infinisil> Aw yeah, streaming toPretty pretty (hah) much done: https://github.com/Infinisil/nixpkgs/blob/streaming-toPretty/lib/generators.nix#L198-L327
<infinisil> Want to pretty-print all of nixpkgs? Well with this you can: `lib.generators.toPretty { nextState = builtins.trace; recursionLimit = 3; } pkgs`
<gchristensen> oh no
<infinisil> Want it to be limited to the first 1000 lines only? lib.generators.toPretty { nextState = line: count: if count > 0 then builtins.trace line (count - 1) else { return = null; }; initialState = 1000; recursionLimit = 3; } pkgs
<infinisil> The possibilities are endless
<infinisil> Only printing lines that contain "hello": nextState = line: state: if lib.hasInfix "hello" line then builtins.trace line state else state
<infinisil> Trimming output to 80 chars wide: nextState = line: builtins.trace (builtins.substring 0 80 line)
clever_ has joined #nixos-dev
clever has quit [Ping timeout: 240 seconds]
__Sander__ has quit [Quit: Konversation terminated!]
saschagrunert has quit [Quit: Leaving]
niksnut has quit [Ping timeout: 246 seconds]
AlwaysLivid has quit [Ping timeout: 272 seconds]
justanotheruser has quit [Ping timeout: 260 seconds]
justanotheruser has joined #nixos-dev
__red__ has joined #nixos-dev
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-dev
orivej has quit [Excess Flood]
orivej has joined #nixos-dev