worldofpeace_ changed the topic of #nixos-dev to: #nixos-dev NixOS Development (#nixos for questions) | NixOS stable: 20.03 ✨ https://discourse.nixos.org/t/nixos-20-03-release/6785 | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html | https://r13y.com | 19.09 RMs: disasm, sphalerite; 20.03: worldofpeace, disasm | https://logs.nix.samueldr.com/nixos-dev
bhipple has joined #nixos-dev
bhipple has quit [Ping timeout: 246 seconds]
bhipple has joined #nixos-dev
bhipple has quit [Ping timeout: 264 seconds]
Taneb has quit [Quit: I seem to have stopped.]
Taneb has joined #nixos-dev
drakonis has quit [Quit: WeeChat 2.8]
notgne2 has quit [Quit: ZNC 1.7.5 - https://znc.in]
notgne2 has joined #nixos-dev
Valodim has quit [Ping timeout: 260 seconds]
<lovesegfault> etu: pin
<lovesegfault> *g
<etu> lovesegfault: pong
<lovesegfault> Two nags:
<lovesegfault> 1. Review #3 when you have time
<lovesegfault> 2. Look at #1, talyz explained me the issue he faced; I think we will have to symlink files
<lovesegfault> But at least we'll still be able to bind-mount user dirs
<etu> lovesegfault: yeah, I think so as well
<lovesegfault> A shame :P
<etu> lovesegfault: Bind mounting dirs is a big advantage though
<etu> indeed
<lovesegfault> I wonder whether we can provide APIs that give both
<etu> I tested #3 for a bit, had some weird issues with some things in my home directory that got owned by root in the tmpfs. I have to look closer into it. It may be because I link to... symlinks :D
<lovesegfault> like impermanence."/state".{bind, link}
<etu> And bind mounting a symlink may not work either
<lovesegfault> Oh, jesus
<lovesegfault> I have no idea what that'd do lol
<lovesegfault> bind mount a symlink to a bind mounted symlink to a device
<lovesegfault> UNIX
drakonis has joined #nixos-dev
Jackneill has joined #nixos-dev
Jackneill has quit [Read error: Connection reset by peer]
Jackneill has joined #nixos-dev
tilpner has quit [Read error: Connection reset by peer]
tilpner has joined #nixos-dev
cole-h has quit [Quit: Goodbye]
Shados has quit [Quit: Shados]
Shados has joined #nixos-dev
<domenkozar[m]> hmm, status.nixos.org seems to be lying :)
Valodim has joined #nixos-dev
xwvvvvwx has quit [Quit: ZNC 1.8.0 - https://znc.in]
xwvvvvwx has joined #nixos-dev
xwvvvvwx has quit [Quit: ZNC 1.8.0 - https://znc.in]
xwvvvvwx has joined #nixos-dev
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-dev
__monty__ has joined #nixos-dev
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-dev
nschoe has joined #nixos-dev
<rnhmjoj> do you how error reporting works in the nixos perl script like insta-grub.pl? running `nixos-rebuild build-vm-with-bootloader` with invalid values cause the script to "die" but no error is shown
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos-dev
FRidh has joined #nixos-dev
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-dev
justanotheruser has quit [Ping timeout: 272 seconds]
teto has joined #nixos-dev
evanjs has quit [Read error: Connection reset by peer]
evanjs- has joined #nixos-dev
justanotheruser has joined #nixos-dev
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 264 seconds]
alp has joined #nixos-dev
orivej has joined #nixos-dev
<domenkozar[m]> weird, anyone has an idea why I'm hitting a purity issue in https://github.com/NixOS/patchelf/pull/205
<domenkozar[m]> it builds locally, but fails with broken pipe on CI
<{^_^}> patchelf#205 (by domenkozar, 4 days ago, open): run CI with musl as well
<domenkozar[m]> I guess it's time for set -xe
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #nixos-dev
<domenkozar[m]> still the same :/
drakonis_ has joined #nixos-dev
orivej_ has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-dev
drakonis has quit [Ping timeout: 260 seconds]
drakonis has joined #nixos-dev
drakonis_ has quit [Ping timeout: 272 seconds]
drakonis_ has joined #nixos-dev
drakonis has quit [Ping timeout: 256 seconds]
<Mic92> worldofpeace: are you in this weeks RFC committee meeting?
<worldofpeace> Mic92: yep, I back
<worldofpeace> easing into stuff mostly
<domenkozar[m]> btw for steering committee I'd recommend if we look into https://github.com/rfcbot
<domenkozar[m]> that would speed up RFCs
<worldofpeace> oh that looks really really great domenkozar
<worldofpeace> the dashboard is glam
<domenkozar[m]> yeah :)
<Mic92> how does it work?
<worldofpeace> lol, we really stay copping with the rust tools and workflows 😂
<Mic92> We don't make it a secret that we don't copy it.
<Mic92> domenkozar[m]: does it match our RFC workflow? We don't have those team label.
<Mic92> Apart from that I like the dashboard tool
<domenkozar[m]> yeah I'm not sure if it matches 1:1
<Mic92> *too
<domenkozar[m]> hopefully we'd be able to use it without too much messing around the codebase
<Mic92> We got a fair amount of rust programmers in the comittee
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-dev
drakonis has joined #nixos-dev
drakonis_ has quit [Ping timeout: 272 seconds]
kloenk has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
kloenk has joined #nixos-dev
bhipple has joined #nixos-dev
asymmetric has quit [Ping timeout: 260 seconds]
xwvvvvwx- has joined #nixos-dev
xwvvvvwx has quit [Ping timeout: 265 seconds]
xwvvvvwx- is now known as xwvvvvwx
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-dev
asymmetric has joined #nixos-dev
drakonis has quit [Ping timeout: 258 seconds]
drakonis has joined #nixos-dev
<matthewbauer> domenkozar niksnut : any chance we could revisit https://github.com/NixOS/nix/pull/2698? I think there was some misunderstanding in that: 1. this only effects statically built Nix and 2. statically built Nix is broken without it
<{^_^}> nix#2698 (by matthewbauer, 1 year ago, open): Add --whole-archive to include all store implementations (when BUILD_SHARED_LIBS=false)
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
evanjs- has quit [Quit: ZNC 1.8.0 - https://znc.in]
evanjs has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
asymmetric has quit [Quit: Peace.]
asymmetric has joined #nixos-dev
asymmetric has quit [Changing host]
asymmetric has joined #nixos-dev
asymmetric has quit [Client Quit]
asymmetric has joined #nixos-dev
drakonis_ has joined #nixos-dev
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-dev
drakonis has quit [Ping timeout: 246 seconds]
justanotheruser has quit [Ping timeout: 260 seconds]
<garbas> niksnut: was nix 2.3.6 uplifted to 20.03? i couldn't it. this is needed for 2.3.6 to show up on nixos.org
drakonis has joined #nixos-dev
drakonis1 has joined #nixos-dev
<infinisil> > stable.nix.version
<{^_^}> "2.3.5"
drakonis_ has quit [Ping timeout: 272 seconds]
<niksnut> garbas: done
<garbas> niksnut: +1
<infinisil> Oh, I'm just noticing that there's a 2.3 branch for Nix which is used for releases
<gchristensen> niksnut: I did a thing with recursive nix, maybe you'd like to see https://github.com/grahamc/netboot.nix
<infinisil> Which is why my PR to master isn't yet available in 2.3.5
<niksnut> gchristensen: good stuff
<niksnut> reminds me I should get back to that recursive nix blog post
justanotheruser has joined #nixos-dev
<gchristensen> I'm thinking maybe I can directly pass the tools I need in to the recursive build and write my own derivation { ... }'s to reduce the reasons to rebuild
orivej has quit [Ping timeout: 256 seconds]
Valodim has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-dev
FRidh has quit [Ping timeout: 264 seconds]
FRidh has joined #nixos-dev
<Mic92> gchristensen: where does it save time?
<Mic92> Does it make multiple small squash file systems?
<gchristensen> yes, and also the same for the cpio's for the initrd
<Mic92> gchristensen: does the linux kernel set any limits on this?
<gchristensen> dunno
<gchristensen> for the cpios, it can just cat them all together to get the cpio (fast, compared to rebuilding the cpio from scratch each time)
<gchristensen> for mksquash, it mounts each one, copies its contents out, and then unmounts and deletes the squash
<gchristensen> it does this unmount bit because otherwise systemd tries to unmount them all at shutdown and gets stuck
<Mic92> gchristensen: so it needs at least twice the initrd as memory?
<gchristensen> more because squashfs does compression
<gchristensen> an incremental build going from a basic netboot system to adding nginx to the netboot system takes about 12-15 seconds
<gchristensen> in comparison, even with 96 cores, making the squashfs and initrd each time would take several minutes for every build
<gchristensen> (cores is relevant because mksquashfs parallelizes across cores fairly well)
<Mic92> gchristensen: mhm. if you are unpacking it anyway, one could skip squashfs right away, no?
<gchristensen> yes-ish. there is a trade-off here, which is that ipxe is actually pretty bad at TCP
<gchristensen> though maybe a tar.gz would be fine
<Mic92> or a more efficient squashfs algorithm
<gchristensen> sure
<gchristensen> note each store path not in the initrd but in the run-time image gets squashed, then cpio'd, then those cpio's are cat'd together to become the `nix-store` file served for netboot
<gchristensen> things that make start-up faster would be lovely :P mounting, copying, unmounting, deleting isn't so fast and fun
<Mic92> yeah
<gchristensen> but even the slow-down caused by that pales in comparison to the speed-up this provides overall, at least, on the hardware I'm working with
<Mic92> At this point it might be worth considering nbd
<gchristensen> I don't think that is really an option for me
<Mic92> anyway, it is good to see some pratical examples for recursive nix
<gchristensen> :) fwiw the restriction I have is my image must be totally bootable over http
<Mic92> gchristensen: I think archlinux had some tricks to boot from http
<gchristensen> I mean i'm already doing it, but it makes nbd not really work I think?
<gchristensen> all of the Hydra builders on Packet netboot with HTTP
<gchristensen> I'm not sure what you're trying to show me
<gchristensen> :/
<Mic92> gchristensen: you could make the initrd smaller and do all the heavy downloads from linux instead of ipxe
<gchristensen> ah, I don't think I can do that, either, because of other restrictions on the boot environment
<gchristensen> the netboot image is booted from an HTTP server only briefly made available at an unknown-until-it-is-happening location
<gchristensen> maybe it could be done
orivej has quit [Ping timeout: 246 seconds]
cole-h has joined #nixos-dev
<Mic92> Any opinions?
<cole-h> Not that I have any say/opinion in the matter, but why not propose that in the committers issue? Slightly more visible (for longer) than a question on IRC: #50105
<{^_^}> https://github.com/NixOS/nixpkgs/issues/50105 (by Infinisil, 1 year ago, open): New nixpkgs committers requests
alp has quit [Remote host closed the connection]
alp has joined #nixos-dev
alp has quit [Ping timeout: 272 seconds]
justanotheruser has quit [Ping timeout: 258 seconds]
alp has joined #nixos-dev
justanotheruser has joined #nixos-dev
<worldofpeace> Um, does anyone have anything that perhaps I should look at? Notifications are useless at this point.
<risson> Sure!
<risson> #89572 :D
<{^_^}> https://github.com/NixOS/nixpkgs/pull/89572 (by rissson, 2 days ago, open): nixos/unbound: add settings option, deprecate extraConfig
* risson absolutely didn't promote his own PR
Valodim has joined #nixos-dev
tokudan has quit [Quit: Dunno.]
tokudan has joined #nixos-dev
tokudan has quit [Remote host closed the connection]
tokudan has joined #nixos-dev
alp has quit [Remote host closed the connection]
alp has joined #nixos-dev
<julm> risson++ settings is better, thanks :)
<{^_^}> risson's karma got increased to 2
<risson> :DD
<jtojnar> worldofpeace: I made some changes to https://github.com/NixOS/nixpkgs/pull/73795
<{^_^}> #73795 (by worldofpeace, 28 weeks ago, open): fontconfig: 2.12.6 -> 2.13.92
<jtojnar> and would like to add `<dir>/usr{,/local}/share/fonts</dir>` to `fonts.conf`
<jtojnar> worldofpeace: welcome back, by the way
drakonis has quit [Ping timeout: 260 seconds]
drakonis1 has quit [Ping timeout: 256 seconds]
drakonis has joined #nixos-dev
<Ericson2314> Does nix currently always get the underlying data from the same remote it got the narinfo?
<manveru> has anyone made a shim for using flakes from normal nix yet?
<manveru> i assume it wouldn't be impossible to make as long as the flakes themselves don't call `getFlake`...
<manveru> except for the `narHash`, but then we just have to fall back to `fetchGit` with the rev... but there's no `ref` stored
<manveru> so... maybe not that easy
<manveru> oh awesome
<manveru> just needs updating to version 6
<manveru> but looks like it might just work
drakonis has quit [Ping timeout: 272 seconds]
drakonis_ has joined #nixos-dev
FRidh has quit [Quit: Konversation terminated!]
drakonis1 has joined #nixos-dev
__monty__ has quit [Quit: leaving]
ris has joined #nixos-dev
<arianvp> what does the number suffix mean in binary cache keys?
<arianvp> cache.nixos.org-1:<blah>
<arianvp> is the thing before the : even used for anything?
<arianvp> the docs dont explain the syntax anywhere as far as I can see
<gchristensen> I assumed it was to have a thing, in the name, to support creating a second one
<arianvp> a second one of what?
<gchristensen> like a new signing key
<arianvp> why not just put two signing keys?
<gchristensen> what would you call the second one?
<arianvp> so wait; does a signing key actually get matches to a binary cache url?
<gchristensen> no
<arianvp> then don't name it; just have a list of base64 encoded strings. other words I dont understand what the name is used for
<gchristensen> but my assumption is the motivation is that it is often useful for humans to have a way to identify and order keys
<arianvp> I see
Valodim has quit [Ping timeout: 272 seconds]
Valodim has joined #nixos-dev
dongcarl has joined #nixos-dev
calbrech` has quit [Remote host closed the connection]
calbrech` has joined #nixos-dev
Valodim has quit [Ping timeout: 260 seconds]
Valodim has joined #nixos-dev
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos-dev
<ajs124> the name comes in handy exactly for that reason. if you have your own binary cache with its own key, you can see if it's in trusted-public-keys at a glance, without having to know the bas64 pubkeys.
teto has quit [Quit: WeeChat 2.8]
alp has quit [Ping timeout: 272 seconds]
justanotheruser has quit [Ping timeout: 264 seconds]
test has joined #nixos-dev
test is now known as Guest76318
Valodim- has joined #nixos-dev
Valodim has quit [Ping timeout: 260 seconds]
Valodim- is now known as Valodim
orivej has joined #nixos-dev
drakonis has joined #nixos-dev
drakonis_ has quit [Read error: Connection reset by peer]
drakonis2 has joined #nixos-dev