sphalerite changed the topic of #nixos-dev to: NixOS Development (#nixos for questions) | NixOS 19.03 released! https://discourse.nixos.org/t/nixos-19-03-release/2652 | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html https://r13y.com | 19.03 RMs: samueldr,sphalerite | https://logs.nix.samueldr.com/nixos-dev
tilpner_ has joined #nixos-dev
tilpner has quit [Ping timeout: 244 seconds]
thonkpod has quit [Ping timeout: 264 seconds]
thonkpod has joined #nixos-dev
<aanderse> samueldr: you saw that mysql didn't build on darwin, right? :\
<samueldr> erm, no, sorry :/ saw the green tick, saw it was a backport
<aanderse> daaaaang
<samueldr> did it build previously&
<aanderse> revert revert! red alert!
<aanderse> i assume?
<samueldr> I don't think so?
<aanderse> oh
<aanderse> well... never mind in that case
<samueldr> the package is pretty leafy
<aanderse> i looked into fixing... that was a disaster
<samueldr> only two darwin derivations are rebuilt by this (that are not directly mysql)
<samueldr> so, not good, but not particularly bad
<aanderse> alright
<samueldr> good news
<aanderse> ah
<aanderse> thanks then :D
<aanderse> yeah
<aanderse> i prolly should have checked that
<aanderse> ha ha ha
<aanderse> i just assume things are in good shape
<aanderse> though maybe thats a bad assumption for darwin
<samueldr> I don't know
<pie_> crazy idea: what if the top level used mkOverridable and you could .override pkgs?
<pie_> (alternatively, is there any way to access the list of overlays used to construct the current nixpkgs?)
<vaibhavsagar> pie_: isn't that what overlays give you?
<vaibhavsagar> what would you be able to do with a list of functions that you can't currently do?
<pie_> well the thing is i have to reimport <nixpkgs> because you cant use {pkgs,...}: ...pkgs... in module imports :I
<pie_> so i wanted to get the list of overlays from the outer scope and build them again
<pie_> (assuming thats possible at all and wouldnt have just resulted in an infinite recursion again somehow)
<pie_> cleanup pending :P
<pie_> (i hate it when people dont make their function arguments availible :( )
phreedom has joined #nixos-dev
<{^_^}> #64054 (by ivan, 5 weeks ago, open): snscrape: 0.2.0 -> 0.3.0
justanotheruser has quit [Ping timeout: 258 seconds]
Jackneill has joined #nixos-dev
pie_ has quit [Ping timeout: 250 seconds]
johanot has joined #nixos-dev
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos-dev
orivej has quit [Ping timeout: 272 seconds]
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos-dev
johanot has quit [Quit: WeeChat 2.4]
orivej has joined #nixos-dev
pepesza has quit [Ping timeout: 244 seconds]
pepesza has joined #nixos-dev
johanot has joined #nixos-dev
<arianvp> niksnut: im trying out nixpkgs.nixFlakes but "nix flake init" seems to generate an invalid flake.nix
<arianvp> si that a known bug?
<arianvp> it adds a
<arianvp> "provides" key instead of an "outputs" key
<arianvp> and a "requires" instead of "inputs"
<niksnut> oops
<niksnut> will fix
psyanticy has joined #nixos-dev
orivej has quit [Ping timeout: 258 seconds]
__monty__ has joined #nixos-dev
pie_ has joined #nixos-dev
orivej has joined #nixos-dev
<domenkozar[m]> niksnut: any objections applying patch to Nix 2.2.2 so it can build with clang 7?
<gchristensen> we should be getting ready to release Nix, actually, for NixOS 19.09
<domenkozar[m]> gchristensen: from master?
<gchristensen> dunno :)
<domenkozar[m]> I'm all for another release :)
justanotheruser has joined #nixos-dev
pie_ has quit [Ping timeout: 252 seconds]
orivej has quit [Ping timeout: 244 seconds]
<arianvp> niksnut: Is there a way with flakes to depend just on nixpkgs/lib but not on the packageset?
<arianvp> or shoulds I just access
<arianvp> pkgs.lib
drakonis has joined #nixos-dev
<niksnut> arianvp: you can use inputs.nixpkgs.lib
<arianvp> ah the flake exposes it
<__monty__> Can you already compose flakes? I.e. is there a "nixpkgs" flake you can reference and everything?
<arianvp> __monty__: yes it seems so . if you do `nix run nixpkgs.nixFlakes` you'll get a nix binary with flake support
<arianvp> ive been messing around with it today
<__monty__> Oh, cool. Should look into it.
orivej has joined #nixos-dev
marek has quit [Changing host]
marek has joined #nixos-dev
FRidh has quit [Quit: Konversation terminated!]
{`-`} has joined #nixos-dev
__monty__ has quit [Remote host closed the connection]
__monty__ has joined #nixos-dev
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos-dev
__monty__ has quit [Ping timeout: 258 seconds]
adamt has joined #nixos-dev
__monty__ has joined #nixos-dev
johanot has quit [Quit: WeeChat 2.4]
<arianvp> niksnut: which bash will nix dev-shell pick?
drakonis has quit [Quit: WeeChat 2.4]
drakonis_ has joined #nixos-dev
drakonis has joined #nixos-dev
<niksnut> it runs $SHELL
<niksnut> which really should be bash at the moment
adamt has quit [Ping timeout: 258 seconds]
psyanticy has quit [Quit: Connection closed for inactivity]
justanotheruser has quit [Ping timeout: 244 seconds]
pie_ has joined #nixos-dev
<gchristensen> I'm thinking the LOW_SPEED timeout https://github.com/NixOS/nix/blob/56df30cd3f89f76f608b469044c17a42cdb2b338/src/libstore/download.cc#L299-L300 should be a bit different, like maybe ask for more than 1 byte per 5 minutes. this is pretty painful, especially if the other end of the connection is not replying at all
<gchristensen> any opinions?
drakonis_ has quit [Ping timeout: 250 seconds]
Jackneill has quit [Remote host closed the connection]
<thoughtpolice> gchristensen: Interestingly it was added to avoid curl hangs on macOS. https://github.com/NixOS/nix/commit/8215b75d36a6c60649dfc8721b8ddd44fbcf697c -- IOWs, my impression is that it was added to stop downloads that hung forever. So the extremely conservative numbers are just to detect hangs, eventually. I think bumping it to a lower limit is pretty reasonable.
<thoughtpolice> "bumping to a lower limit"
ixxie has joined #nixos-dev
<gchristensen> I'm sort of tempted to make it lowSpeedTimeout configurable, defaulting to the connectTimeout
<thoughtpolice> Maybe like 1 byte over 1 minute. (Wonder what the TTFB latency on a satellite link looks like...)
<thoughtpolice> lowSpeedTimeout being tuned lower and being configurable seems quite reasonable.
<thoughtpolice> gchristensen: Though, actually, nix uses connectTimeout=0 by default, which means it uses curl's default
<thoughtpolice> Which is actually... 300 seconds :)
<gchristensen> yes
<infinisil> Regarding docs, might be interesting to put Nix documentation in a tool like this: https://kumu.io/
<infinisil> Getting away from the arbitrary linear structure they are in now
<simpson> Example?
<simpson> (I think that fancy ontologies are great, but I'm not sure what you're imagining.)
<infinisil> Lemme see
<infinisil> E.g. this chapter would have a link to the nix language: https://nixos.org/nixos/manual/index.html#sec-configuration-syntax
<infinisil> The "packages" item there could link to the package listing
<infinisil> The package listing could link to NixOS modules if they exist for a package
<infinisil> And manual sections if they exist for the nixos module
<infinisil> The "installing NixOS" section could link to a list of steps you could continue with
<infinisil> Either with configuring for a server, or enabling a DE
<gchristensen> I sort of think the one-page-ification of the nixos manual makes it appear linear when it doesn't need to be
<infinisil> Yeah exactly, people won't read it from top to bottom, they'll just try to find what they need in it (and then probably want to know about related information)
<gchristensen> I'm hopeful that we'll be able to ship something here soon with search, and no massive top level ToC http://gsc.io/search-docs/sec-language-perl.html#ssec-perl-cross-compilation
<gchristensen> I'm hopeful that we'll be able to ship something here soon with search, and no massive top level ToC http://gsc.io/search-docs/sec-language-perl.html
<infinisil> Well I guess the good thing about a one-page manual is that you can just Ctrl-F to search :P
<gchristensen> that is only good if you don't have a decent search
<infinisil> (ignoring that you might be in the wrong one-page manual though..)
<gchristensen> if you use the search bar at the top of that page and type "cross compilation" you'll get better and more results than Ctrl-F would get
<infinisil> Oh haha, I didn't have javascript enabled, so I didn't see it
<gchristensen> ah
<infinisil> Yeah that's much better than Ctrl-F
<gchristensen> thank you ^.^
<infinisil> There's a big doc discussion happening on discourse recently https://discourse.nixos.org/t/documentation-improvements/3111
<gchristensen> I saw that :/
<gchristensen> the "shelling out" to HTML is interesting when targeting manpages
<infinisil> Ah yeah, haven't thought of that, would probably good to post as a comment
<gchristensen> (and epubs and pdfs)
<infinisil> But you gotta admit, tazjin says some good points for using something more markdown-like
<gchristensen> so many sheds being painted, can you link me to the hot points?
<gchristensen> yeah
<gchristensen> that one is a great point
<infinisil> I don't think markdown is a good solution, but I think asciidoc or restructured text would be good candidates
<infinisil> Probably tazjin just hasn't considered the different build targets for the docs
<gchristensen> another important part is not having a massive build toolchain, since user machines often do build their own version of the docs
<gchristensen> I'm poisoned of course, I don't mind docbook
<infinisil> Slim dependencies are always nice
<gchristensen> does this read well? The timeout (in seconds) for receiving data from servers during download. Nix cancels the download after this timeout without receiving any bytes.
<infinisil> gchristensen: How about something like "How many seconds to wait until canceling a download that isn't receiving any more bytes"
<gchristensen> that is a very complicated sentence :)
<infinisil> That's the docs for what exactly?
<yorick> use the word 'idle' somewhere
justanotheruser has joined #nixos-dev
<timokau[m]> I think the suggestion of markdown extensions (https://github.com/kjdev/hoextdown in particular was suggested) is interesting
<gchristensen> how about The timeout (in seconds) for receiving data from servers during download. Nix cancels idle downloads after this timeout's duration.
ixxie has quit [Ping timeout: 245 seconds]
<infinisil> gchristensen: Btw I mentioned the problem with shelling out to html in the thread
<gchristensen> ah! thank you :)
johanot has joined #nixos-dev
johanot has quit [Quit: WeeChat 2.4]
jtojnar has quit [Ping timeout: 272 seconds]
drakonis has quit [Ping timeout: 245 seconds]
johnny101m has joined #nixos-dev
<worldofpeace> hey can someone move https://github.com/NixOS/nixpkgs/issues/66296 to the nix repo?
<{^_^}> #66296 (by lilyball, 48 minutes ago, open): `nix eval` doesn't understand expressions that don't begin with a paren
<gchristensen> you got it@
Jackneill has joined #nixos-dev
<worldofpeace> thanks gchristensen
<gchristensen> :o I think I got 0.0.0.0/0 wg VPNs to work inside nixos options
Jackneill has quit [Read error: Connection reset by peer]
<worldofpeace> 🌸
drakonis_ has joined #nixos-dev
johanot has joined #nixos-dev
drakonis has joined #nixos-dev
drakonis_ has quit [Read error: Connection reset by peer]
<gchristensen> I'd <3 some feedback, I have no idea what I'm doing: https://github.com/NixOS/nixpkgs/pull/66300
johanot has quit [Quit: WeeChat 2.4]
__monty__ has quit [Ping timeout: 248 seconds]
orivej has quit [Ping timeout: 245 seconds]
justanotheruser has quit [Ping timeout: 264 seconds]
<ivan> gchristensen: I think you forgot the 'interfaces.' in these lines in your github comment:
<ivan> networking.wireguard.wg0.fwmark = 51820;
<ivan> networking.wireguard.wg0.table = "51820";
<ivan> and networking.wireguard.wg0.peers = [
<gchristensen> yup
<ivan> also
<ivan> error: The option value `networking.wireguard.interfaces.wg0.table' in `/etc/nixos/configuration.nix' is not of type `string'.
<gchristensen> in my example, I use a string
<gchristensen> so I think you copied it wrong
<andi-> it must be a string since tables can be named
<ivan> oh I set it to null
<ivan> I see, thanks
<gchristensen> and I think you can name it whatever you want
<andi-> up to ~14 characters or so
<gchristensen> ah. I tried setting it to lolwg0 andit didn't like it. maybe I need to precreate the table or something
<andi-> We had a PR last year about that.. not sure if that ever got merged
<andi-> https://github.com/NixOS/nixpkgs/pull/41801 that should at least provide the plumbing required
<{^_^}> #41801 (by volth, 1 year ago, merged): iproute: copy files in /etc
adamt has joined #nixos-dev
adamt is now known as Guest14863
justanotheruser has joined #nixos-dev
__monty__ has joined #nixos-dev
Guest14863 has quit [Ping timeout: 268 seconds]
Guest14863 has joined #nixos-dev
__monty__ has quit [Quit: leaving]